@Test public void showsErrorMessageInContentIfLogConfigFileDoesNotExist() { StartupConfig startupConfig = newStartupConfigBuilder() .logbackConfigLocation("/foo/bar") .build(); LoggingConfigurationHandler handler = new LoggingConfigurationHandler(startupConfig.logConfigLocation()); HttpResponse response = Mono.from(handler.handle(get("/").build(), requestContext())).block(); assertThat(response.status(), is(OK)); assertThat(response.bodyAs(UTF_8), matchesRegex("Could not load resource=.*foo[\\\\/]bar'")); }
@Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return Eventual.of(generateResponse()); }
LoggingConfigurationHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return Eventual.of(generateResponse()); } }
LoggingConfigurationHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return Eventual.of(generateResponse()); } LoggingConfigurationHandler(Resource logConfigLocation); }
LoggingConfigurationHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return Eventual.of(generateResponse()); } LoggingConfigurationHandler(Resource logConfigLocation); @Override Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context); }
LoggingConfigurationHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return Eventual.of(generateResponse()); } LoggingConfigurationHandler(Resource logConfigLocation); @Override Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context);  }