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
cced3514
Commit
cced3514
authored
Jul 11, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
c489c6c5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
EndpointDiscoverer.java
.../boot/actuate/endpoint/annotation/EndpointDiscoverer.java
+0
-4
MongoReactiveHealthIndicatorTests.java
...boot/actuate/mongo/MongoReactiveHealthIndicatorTests.java
+3
-2
MappingsEndpointTests.java
...work/boot/actuate/web/mappings/MappingsEndpointTests.java
+1
-2
DispatcherServletAutoConfiguration.java
...igure/web/servlet/DispatcherServletAutoConfiguration.java
+1
-5
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/annotation/EndpointDiscoverer.java
View file @
cced3514
...
...
@@ -465,10 +465,6 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
return
this
.
id
;
}
public
Class
<?>
getType
()
{
return
this
.
bean
.
getClass
();
}
public
boolean
isEnabledByDefault
()
{
return
this
.
enabledByDefault
;
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/mongo/MongoReactiveHealthIndicatorTest.java
→
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/mongo/MongoReactiveHealthIndicatorTest
s
.java
View file @
cced3514
...
...
@@ -35,7 +35,7 @@ import static org.mockito.Mockito.mock;
*
* @author Yulin Qin
*/
public
class
MongoReactiveHealthIndicatorTest
{
public
class
MongoReactiveHealthIndicatorTest
s
{
@Test
public
void
testMongoIsUp
()
{
...
...
@@ -65,7 +65,8 @@ public class MongoReactiveHealthIndicatorTest {
StepVerifier
.
create
(
health
).
consumeNextWith
((
h
)
->
{
assertThat
(
h
.
getStatus
()).
isEqualTo
(
Status
.
DOWN
);
assertThat
(
h
.
getDetails
()).
containsOnlyKeys
(
"error"
);
assertThat
(
h
.
getDetails
().
get
(
"error"
)).
isEqualTo
(
"Connection failed"
);
assertThat
(
h
.
getDetails
().
get
(
"error"
))
.
isEqualTo
(
MongoException
.
class
.
getName
()
+
": Connection failed"
);
}).
verifyComplete
();
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/web/mappings/MappingsEndpointTests.java
View file @
cced3514
...
...
@@ -73,7 +73,6 @@ import static org.springframework.web.reactive.function.server.RouterFunctions.r
public
class
MappingsEndpointTests
{
@Test
@SuppressWarnings
(
"unchecked"
)
public
void
servletWebMappings
()
{
Supplier
<
ConfigurableWebApplicationContext
>
contextSupplier
=
prepareContextSupplier
();
new
WebApplicationContextRunner
(
contextSupplier
)
...
...
@@ -100,7 +99,6 @@ public class MappingsEndpointTests {
}
@Test
@SuppressWarnings
(
"unchecked"
)
public
void
servletWebMappingsWithAdditionalDispatcherServlets
()
{
Supplier
<
ConfigurableWebApplicationContext
>
contextSupplier
=
prepareContextSupplier
();
new
WebApplicationContextRunner
(
contextSupplier
).
withUserConfiguration
(
...
...
@@ -121,6 +119,7 @@ public class MappingsEndpointTests {
});
}
@SuppressWarnings
(
"unchecked"
)
private
Supplier
<
ConfigurableWebApplicationContext
>
prepareContextSupplier
()
{
ServletContext
servletContext
=
mock
(
ServletContext
.
class
);
given
(
servletContext
.
getInitParameterNames
())
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfiguration.java
View file @
cced3514
...
...
@@ -90,12 +90,8 @@ public class DispatcherServletAutoConfiguration {
private
final
WebMvcProperties
webMvcProperties
;
private
final
ServerProperties
serverProperties
;
public
DispatcherServletConfiguration
(
WebMvcProperties
webMvcProperties
,
ServerProperties
serverProperties
)
{
public
DispatcherServletConfiguration
(
WebMvcProperties
webMvcProperties
)
{
this
.
webMvcProperties
=
webMvcProperties
;
this
.
serverProperties
=
serverProperties
;
}
@Bean
(
name
=
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
)
...
...
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