Examples of MessageWaiter


Examples of com.softwaremill.common.test.util.MessageWaiter

        final CountDownLatch latch = new CountDownLatch(1);
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    new MessageWaiter(getTailProcess()).waitFor(deployment.getWaitForMessage());
                    latch.countDown();
                } catch (IOException ex) {
                    throw new RuntimeException(ex);
                }
            }
View Full Code Here

Examples of com.softwaremill.common.test.util.MessageWaiter

    log.info("Starting JBoss server with command: " + Arrays.toString(startCommand));

        jbossProcess = Runtime.getRuntime().exec(startCommand);

    new MessageWaiter(jbossProcess).waitFor(startedLogMessage());

    log.info("JBoss started");

    return jbossProcess;
  }
View Full Code Here

Examples of com.softwaremill.common.test.util.MessageWaiter

    if (winSystem()) {
      PrintWriter writer = new PrintWriter(new OutputStreamWriter(shutdownProcess.getOutputStream(), Charsets.UTF_8));
      try {
        //On windows, user needs to press any key on the console
        //for the process to exit. Wait a bit for message "Press any key"
        new MessageWaiter(shutdownProcess).waitFor("Press any key to continue");
        writer.write("y");
        writer.flush();
      } finally {
        writer.close();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.