private void enterControlLoop() throws IOException, ServiceAlreadyStartedException { logger.log(Level.INFO, "Starting daemon control server ..."); controlServer = new ControlServer(); controlServer.enterLoop(); // This blocks! }
@Before @SuppressWarnings("deprecation") public void setUp() { ctrlFile = mock(File.class); ctrlFileTailer = mock(Tailer.class); eventBus = mock(LocalEventBus.class); ctrlServer = new ControlServer(ctrlFile, ctrlFileTailer, eventBus); }