コード例 #1
0
  @Test
  public void JTSRemote_DistributedHammerTest2() {
    Task server1 =
        createTask(
            "server1",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(960));
    server1.start("$(1)");
    Task server2 =
        createTask(
            "server2",
            com.hp.mwtests.ts.jts.remote.servers.HammerServer.class,
            Task.TaskType.EXPECT_READY,
            getTimeout(960));
    server2.start("$(2)");

    Task client =
        createTask(
            "client1",
            com.hp.mwtests.ts.jts.remote.hammer.DistributedHammer2.class,
            Task.TaskType.EXPECT_PASS_FAIL,
            getTimeout(960));
    client.start("$(1)", "$(2)");
    client.waitFor();

    server1.terminate();
    server2.terminate();
  }
 @Test
 public void RawSubtransactionAwareResources02_1_Test002() {
   setTestName("Test002");
   Task server1 =
       createTask(
           "server1",
           org.jboss.jbossts.qa.RawSubtransactionAwareResources02Servers.Server01.class,
           Task.TaskType.EXPECT_READY,
           480);
   server1.start("$(1)");
   Task client0 =
       createTask(
           "client0",
           org.jboss.jbossts.qa.RawSubtransactionAwareResources02Clients1.Client002.class,
           Task.TaskType.EXPECT_PASS_FAIL,
           480);
   client0.start("$(1)");
   client0.waitFor();
   server1.terminate();
 }