Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
05cf8229
Commit
05cf8229
authored
May 10, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
c937bb68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
JerseyEndpointIntegrationTests.java
...igure/integrationtest/JerseyEndpointIntegrationTests.java
+5
-0
JolokiaEndpointAutoConfigurationTests.java
...figure/jolokia/JolokiaEndpointAutoConfigurationTests.java
+2
-0
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/integrationtest/JerseyEndpointIntegrationTests.java
View file @
05cf8229
...
@@ -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.jackson.JacksonAutoConfiguration
;
import
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
;
import
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration
;
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.test.context.runner.WebApplicationContextRunner
;
import
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
;
import
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.test.web.reactive.server.WebTestClient
;
import
org.springframework.test.web.reactive.server.WebTestClient
;
import
org.springframework.web.servlet.DispatcherServlet
;
/**
/**
* Integration tests for the Jersey actuator endpoints.
* Integration tests for the Jersey actuator endpoints.
...
@@ -44,8 +46,11 @@ public class JerseyEndpointIntegrationTests {
...
@@ -44,8 +46,11 @@ public class JerseyEndpointIntegrationTests {
@Test
@Test
public
void
linksAreProvidedToAllEndpointTypes
()
throws
Exception
{
public
void
linksAreProvidedToAllEndpointTypes
()
throws
Exception
{
FilteredClassLoader
classLoader
=
new
FilteredClassLoader
(
DispatcherServlet
.
class
);
new
WebApplicationContextRunner
(
new
WebApplicationContextRunner
(
AnnotationConfigServletWebServerApplicationContext:
:
new
)
AnnotationConfigServletWebServerApplicationContext:
:
new
)
.
withClassLoader
(
classLoader
)
.
withConfiguration
(
.
withConfiguration
(
AutoConfigurations
.
of
(
JacksonAutoConfiguration
.
class
,
AutoConfigurations
.
of
(
JacksonAutoConfiguration
.
class
,
JerseyAutoConfiguration
.
class
,
JerseyAutoConfiguration
.
class
,
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/jolokia/JolokiaEndpointAutoConfigurationTests.java
View file @
05cf8229
...
@@ -30,6 +30,7 @@ import org.springframework.boot.actuate.endpoint.web.PathMapper;
...
@@ -30,6 +30,7 @@ import org.springframework.boot.actuate.endpoint.web.PathMapper;
import
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
;
import
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
;
import
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier
;
import
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointsSupplier
;
import
org.springframework.boot.autoconfigure.AutoConfigurations
;
import
org.springframework.boot.autoconfigure.AutoConfigurations
;
import
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration
;
import
org.springframework.boot.test.context.assertj.AssertableWebApplicationContext
;
import
org.springframework.boot.test.context.assertj.AssertableWebApplicationContext
;
import
org.springframework.boot.test.context.runner.WebApplicationContextRunner
;
import
org.springframework.boot.test.context.runner.WebApplicationContextRunner
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContext
;
...
@@ -50,6 +51,7 @@ public class JolokiaEndpointAutoConfigurationTests {
...
@@ -50,6 +51,7 @@ public class JolokiaEndpointAutoConfigurationTests {
private
final
WebApplicationContextRunner
contextRunner
=
new
WebApplicationContextRunner
()
private
final
WebApplicationContextRunner
contextRunner
=
new
WebApplicationContextRunner
()
.
withConfiguration
(
AutoConfigurations
.
of
(
.
withConfiguration
(
AutoConfigurations
.
of
(
DispatcherServletAutoConfiguration
.
class
,
ManagementContextAutoConfiguration
.
class
,
ManagementContextAutoConfiguration
.
class
,
ServletManagementContextAutoConfiguration
.
class
,
ServletManagementContextAutoConfiguration
.
class
,
ServletEndpointManagementContextConfiguration
.
class
,
ServletEndpointManagementContextConfiguration
.
class
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment