package com.nielsen.buzz.servicelayer.project.service; import junit.framework.Test; import junit.framework.TestSuite; //import org.junit.runner.RunWith; //import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; import com.clarkware.junitperf.LoadTest; import com.clarkware.junitperf.TimedTest; //@RunWith(Suite.class) @SuiteClasses({ ProjectServiceTest.class }) public class ProjectServiceperftest { static int users = 50; static int iterations =2; static long maxElapsedTime = 100; public static Test countProjects() { Test factory=new ProjectServiceTest("countProjects"); Test loadTest=new LoadTest(factory,users,iterations); Test timedTest = new TimedTest(loadTest, maxElapsedTime ); return timedTest; } public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(countProjects()); return suite; } public static void main(String args[]) throws Exception{ junit.textui.TestRunner.run(suite()); } }