57585960616263
runner = null; } @Test public void construction() { assertNotNull(new OperaInProcessRunner()); }
62636465666768
assertNotNull(new OperaInProcessRunner()); } @Test public void constructionWithSettings() { assertNotNull(new OperaInProcessRunner(settings)); }
67686970717273747576
assertNotNull(new OperaInProcessRunner(settings)); } @Test public void startOpera() { runner = new OperaInProcessRunner(); runner.startOpera(); assertTrue(runner.isOperaRunning()); }
757677787980818283
assertTrue(runner.isOperaRunning()); } @Test public void startOperaAfterStartedIsNoOp() { runner = new OperaInProcessRunner(); runner.startOpera(); runner.startOpera(); }
8283848586878889909192
runner.startOpera(); } @Test public void stopOpera() { runner = new OperaInProcessRunner(); runner.startOpera(); assertTrue(runner.isOperaRunning()); runner.stopOpera();
93949596979899100101
assertFalse(runner.isOperaRunning()); } @Test public void stopOperaAfterStoppedIsNoOp() { runner = new OperaInProcessRunner(); runner.stopOpera(); runner.stopOpera(); }
100101102103104105106107108109110
runner.stopOpera(); } @Test public void isOperaRunning() { runner = new OperaInProcessRunner(); assertFalse(runner.isOperaRunning()); runner.startOpera(); assertTrue(runner.isOperaRunning()); runner.stopOpera();
111112113114115116117118119120121
assertFalse(runner.isOperaRunning()); } @Test public void hasOperaCrashedNotImplemented() { runner = new OperaInProcessRunner(); try { runner.hasOperaCrashed(); fail("Expected UnsupportedOperationException"); } catch (RuntimeException e) {
123124125126127128129130131132133
} } @Test public void getOperaCrashlogNotImplemented() { runner = new OperaInProcessRunner(); try { runner.getOperaCrashlog(); fail("Expected UnsupportedOperationException"); } catch (RuntimeException e) {
135136137138139140141142
} } @Test public void shutdown() { runner = new OperaInProcessRunner(); runner.shutdown(); }