use of org.springframework.boot.devtools.livereload.LiveReloadServer in project spring-boot by spring-projects.
the class OptionalLiveReloadServerTests method serverWontStart.
@Test
public void serverWontStart() throws Exception {
LiveReloadServer delegate = mock(LiveReloadServer.class);
OptionalLiveReloadServer server = new OptionalLiveReloadServer(delegate);
willThrow(new RuntimeException("Error")).given(delegate).start();
server.startServer();
server.triggerReload();
verify(delegate, never()).triggerReload();
}
Aggregations