TestPerfSearchModelpublic class TestPerfSearchModel extends Object
Methods Summary |
---|
private static junit.framework.Test | createLoadTest(junit.framework.Test testToWrap, int users, int iterations)
return new LoadTest(testToWrap, users, iterations);
| private static junit.framework.Test | createLoadTest(junit.framework.Test testToWrap, int users, int iterations, Timer timer)
return new LoadTest(testToWrap, users, iterations, timer);
| private static junit.framework.Test | createTimedTest(junit.framework.Test testToWrap, int time, boolean waitForCompletion)
return new TimedTest(testToWrap, time, waitForCompletion);
| public static void | main(java.lang.String[] args)
junit.textui.TestRunner.run(suite());
| public static junit.framework.Test | suite()
Test testCase = new TestSearchModel("testAsynchronousSearch");
TestSuite suite = new TestSuite();
suite.addTest(createTimedTest(testCase, 1100, false));
suite.addTest(createTimedTest(testCase, 1100, true));
suite.addTest(createLoadTest(testCase, 15, 20));
suite.addTest(createLoadTest(testCase,
10,
2,
new RandomTimer(100, 10)));
suite.addTest(createLoadTest(testCase, 15, 10));
return suite;
|
|