@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(); }
@After public void tearDown() throws Exception { httpServer.stop(); streamingServer.stop(); super.tearDown(); }