|
|
|
|
@ -29,11 +29,13 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
@@ -29,11 +29,13 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration; |
|
|
|
|
import org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration; |
|
|
|
|
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration; |
|
|
|
|
import org.springframework.boot.test.context.FilteredClassLoader; |
|
|
|
|
import org.springframework.boot.test.context.runner.WebApplicationContextRunner; |
|
|
|
|
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
import org.springframework.test.web.reactive.server.WebTestClient; |
|
|
|
|
import org.springframework.web.servlet.DispatcherServlet; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Integration tests for the Jersey actuator endpoints. |
|
|
|
|
@ -44,8 +46,11 @@ public class JerseyEndpointIntegrationTests {
@@ -44,8 +46,11 @@ public class JerseyEndpointIntegrationTests {
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void linksAreProvidedToAllEndpointTypes() throws Exception { |
|
|
|
|
FilteredClassLoader classLoader = new FilteredClassLoader( |
|
|
|
|
DispatcherServlet.class); |
|
|
|
|
new WebApplicationContextRunner( |
|
|
|
|
AnnotationConfigServletWebServerApplicationContext::new) |
|
|
|
|
.withClassLoader(classLoader) |
|
|
|
|
.withConfiguration( |
|
|
|
|
AutoConfigurations.of(JacksonAutoConfiguration.class, |
|
|
|
|
JerseyAutoConfiguration.class, |
|
|
|
|
|