コード例 #1
0
  @Before
  public void setUp() throws Exception {
    super.setUp();

    try {
      streamingServer.start();
    } catch (UnrecoverableStartupException e) {
      // address already in use - wait a bit.
      Sleep.millis(500);
      streamingServer.start();
    }

    httpServer.start();
  }
コード例 #2
0
 @After
 public void tearDown() throws Exception {
   httpServer.stop();
   streamingServer.stop();
   super.tearDown();
 }