FileDocCategorySizeDatePackage
TestPerfSearchModel.javaAPI DocExample1736Sat Mar 15 19:39:54 GMT 2003com.oreilly.javaxp.junitperf

TestPerfSearchModel

public class TestPerfSearchModel extends Object
author
Brian M. Coyner
version
$Id: TestPerfSearchModel.java,v 1.4 2003/02/26 23:26:06 jepc Exp $

Fields Summary
Constructors Summary
Methods Summary
private static junit.framework.TestcreateLoadTest(junit.framework.Test testToWrap, int users, int iterations)

        return new LoadTest(testToWrap, users, iterations);
    
private static junit.framework.TestcreateLoadTest(junit.framework.Test testToWrap, int users, int iterations, Timer timer)

        return new LoadTest(testToWrap, users, iterations, timer);
    
private static junit.framework.TestcreateTimedTest(junit.framework.Test testToWrap, int time, boolean waitForCompletion)

        return new TimedTest(testToWrap, time, waitForCompletion);
    
public static voidmain(java.lang.String[] args)

        junit.textui.TestRunner.run(suite());
    
public static junit.framework.Testsuite()


        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;