Package de.danet.an.util.junit

Examples of de.danet.an.util.junit.NamedTestGroup


      (ProcHandling.class, "createProcess21Acts");
  addTest (suite, "Create 21 activities", factory);

  Map tg = new HashMap ();
  tg.put ("title", "Create Tests");
  rootSuite.addTest (new NamedTestGroup (suite, "TestGroup", tg));

  suite = new TestSuite ();

  factory = new TestMethodFactory
      (ProcHandling.class, "createStart11Acts");
  addTest (suite, "Create and start 11 activities", factory);

  tg.put ("title", "Create and Start Tests");
  rootSuite.addTest (new NamedTestGroup (suite, "TestGroup", tg));

        return new EJBClientTest (plc, rootSuite);
    }
View Full Code Here


         TestMethodFactory factory) {
  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

  /*  addTest(suite, "Create and Start Process along Path2b",
    tp2b.createInitStartTest());
  addTest(suite, "Create and Start Process along Path3",
    tp3.createInitStartTest());
  */
  rootSuite.addTest(new NamedTestGroup (suite, "TestGroup", tg));
  System.out.println("finished test preparation");
        return new EJBClientTest (plc, rootSuite);
    }
View Full Code Here

         Test testCase) {
  TestSuite suite = new TestSuite ();
  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

  addTest(suite, "10 activities",
    new GenericTest("createProcess", "A10T9seqCnNoImpl"));
 
  tg.put ("title",
    "Create processes with variable number of activities");
  rootSuite.addTest (new NamedTestGroup (suite, "TestGroup", tg));
 
        /* Examine the performance for creating and starting a process
     depending on its structure */
 
  suite = new TestSuite();

  addTest(suite, "seriell(A5,T4)",
    new GenericTest("createAndStartProcess", "A5T4seqCnNoImpl"));

  addTest(suite, "paralell(A5,T4)",
    new GenericTest("createAndStartProcess", "A5T4parCnNoImpl"));

  addTest(suite, "complex(A5,T6)",
    new GenericTest("createAndStartProcess", "A5T6comCnNoImpl"));

  tg.put("title", "Create and start processes of different structure");
  rootSuite.addTest(new NamedTestGroup(suite, "TestGroup", tg));
 
  /* examine the performance for creating and starting a process
     depending on the type of conditions */
 
  suite = new TestSuite ();

  addTest(suite, "no conditions",
    new GenericTest("createAndStartProcess", "A5T6comCnNoImpl"));
  addTest(suite, "f1 == '1' && f2=='2'",
    new GenericTest("createAndStartProcess", "A5T6comCyNoImpl"));

  tg.put ("title",
    "Create and start Processes with different types of "
    + "(un)conditional transitions");
  rootSuite.addTest(new NamedTestGroup (suite, "TestGroup", tg));
 
  /* Examine the performance for creating and starting a process
     depending on a tool in use */
 
  suite = new TestSuite ();

  addTest(suite, "no implementation",
          new GenericTest("createAndStartProcess",
        "A5T4seqCnNoImpl"));
  addTest(suite, "empty script",
          new GenericTest("createAndStartProcess",
        "A5T4seqCnEmptyScript"));
  addTest(suite, "sleep script",
          new GenericTest("createAndStartProcess",
        "A5T4seqCnSleepScript"));
 
  //addTest(suite, "sleep tool",
  //        new GenericTest("createAndStartProcess",
  //                        "A5T4seqCnSleepTool"));

  tg.put ("title",
    "Create and start Processes with different tools assigned "
    + "to activities");
  rootSuite.addTest (new NamedTestGroup (suite, "TestGroup", tg));

  /* Examine the performance for creating and starting a process
     depending on ... */

  //suite = new TestSuite ();
View Full Code Here

         Test testCase) {
  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);
  parentSuite.addTest (new NamedTestGroup(suite, "Test", tt));
    }
View Full Code Here

  Map tg = new HashMap ();
  tg.put ("title",
    "Create processes with a variable number of process datas "
    + "and start them");
  rootSuite.addTest (new NamedTestGroup (createAndStartSuite(),
                 "TestGroup", tg));

        tg = new HashMap ();
  tg.put ("title",
    "Create processes with a variable number of process datas, "
    + "initialize and start them ");
  rootSuite.addTest (new NamedTestGroup (createStartAndInitializeSuite(),
                 "TestGroup", tg));
        return new EJBClientTest (plc, rootSuite);
    }
View Full Code Here

         Test testCase) {
  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);
  parentSuite.addTest (new NamedTestGroup(suite, "Test", tt));
    }
View Full Code Here

TOP

Related Classes of de.danet.an.util.junit.NamedTestGroup

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.