Package com.clarkware.junitperf

Examples of com.clarkware.junitperf.ConstantTimer


  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(factory, 10, 2, new ConstantTimer(10)),
        "Samples", sas));

  Map tt = new HashMap ();
  tt.put ("title", title);
  parentSuite.addTest (new NamedTestGroup(suite, "Test", tt));
View Full Code Here


        TestSuite suite = new TestSuite();
     suite.addTest(new MassiveProcCreation("importProcessDefinitions"));
     suite.addTest
         (new LoadTest
          (new MassiveProcCreation("createProcess"),
           5, 20000, new ConstantTimer(10)));
        return new EJBClientTest (plc, suite);
    }
View Full Code Here

  Map sas = new HashMap ();
  sas.put ("users", new Integer(USERS));
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, USERS, ITERATIONS,
         new ConstantTimer(DELAYTIME)),
        "Samples", sas));
      
  Map tt = new HashMap ();
  tt.put ("title", title);
  parentSuite.addTest (new NamedTestGroup(suite, "Test", tt));
View Full Code Here

  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());

  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 10, 2, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  Map tt = new HashMap ();
  tt.put ("title", title);
View Full Code Here

  // java classes
  suite.addTest(new GenericTest("prepareForCreateProcess",
              packageID));
  suite.addTest(new GenericTest("createProcess", packageID));

  Timer timer = new ConstantTimer(delay);
  suite.addTest(new LoadTest(new GenericTest("createProcess",
               packageID),
           users, iterations, timer));
  suite.addTest(new LoadTest(new GenericTest("createAndStartProcess",
               packageID),
View Full Code Here

  TestSuite suite = new TestSuite ();
  Map sas = new HashMap ();
  sas.put ("users", "1");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 1, 20, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "2");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 2, 10, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "4");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 4, 5, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
 
  sas.put ("users", "5");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 5, 4, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
   
  sas.put ("users", "10");
  suite.addTest
      (new NamedTestGroup
       (new LoadTest(testCase, 10, 2, new ConstantTimer(10)),
        "Samples", sas));
  suite.addTest(GenericTest.cleaningSuite());
      
  Map tt = new HashMap ();
  tt.put ("title", title);
View Full Code Here

     *-------------------------------------------------------------*/
    public static Test suite()
    {
        TestSuite suite = new TestSuite();

        Timer timer = new ConstantTimer( 100 );
        int maxUsers = 50;
        int iterations = 10;
        long maxElapsedTime = 20000;

        Test testCase = new ResourceLimitingPoolMultithreadMaxTestCase( "testGetPut" );
View Full Code Here

     *-------------------------------------------------------------*/
    public static Test suite()
    {
        TestSuite suite = new TestSuite();

        Timer timer = new ConstantTimer( 10 );
        int maxUsers = 20;
        int iterations = 50;
        long maxElapsedTime = 20000;

        Test testCase = new ResourceLimitingPoolMultithreadTestCase( "testGetPut" );
View Full Code Here

     *-------------------------------------------------------------*/
    public static Test suite()
    {
        TestSuite suite = new TestSuite();

        Timer timer = new ConstantTimer( 100 );
        int maxUsers = 10;
        int iterations = 10;
        long maxElapsedTime = 20000;

        Test testCase = new ResourceLimitingPoolMultithreadMaxStrictBlockTestCase( "testGetPut" );
View Full Code Here

     *-------------------------------------------------------------*/
    public static Test suite()
    {
        TestSuite suite = new TestSuite();

        Timer timer = new ConstantTimer( 100 );
        int maxUsers = 50;
        int iterations = 10;
        long maxElapsedTime = 20000;

        Test testCase = new ResourceLimitingPoolMultithreadMaxStrictTestCase( "testGetPut" );
View Full Code Here

TOP

Related Classes of com.clarkware.junitperf.ConstantTimer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.