Exemplo n.º 1
0
  private void runInstance() {
    System.setProperty("java.net.preferIPv4Stack", "true");
    Kompics.createAndStart(TestStClientComponent.class, 1);

    try {
      TcpPingTest.semaphore.acquire(EVENT_COUNT);
      logger.info("Finished test.");
    } catch (InterruptedException e) {
      assert (false);
    } finally {
      Kompics.shutdown();
    }
  }
Exemplo n.º 2
0
 /**
  * Create the test case
  *
  * @param testName name of the test case
  */
 public TcpPingTest(String testName) {
   super(testName);
   System.setProperty("java.net.preferIPv4Stack", "true");
 }