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
f896ff9a
Commit
f896ff9a
authored
Jan 08, 2017
by
Eddú Meléndez
Committed by
Stephane Nicoll
Jan 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incomplete assertions
Closes gh-7907
parent
b9eda3f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MongoHealthIndicatorTests.java
...mework/boot/actuate/health/MongoHealthIndicatorTests.java
+2
-2
SpringApplicationTests.java
...java/org/springframework/boot/SpringApplicationTests.java
+1
-1
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/MongoHealthIndicatorTests.java
View file @
f896ff9a
...
@@ -85,8 +85,8 @@ public class MongoHealthIndicatorTests {
...
@@ -85,8 +85,8 @@ public class MongoHealthIndicatorTests {
MongoHealthIndicator
healthIndicator
=
new
MongoHealthIndicator
(
mongoTemplate
);
MongoHealthIndicator
healthIndicator
=
new
MongoHealthIndicator
(
mongoTemplate
);
Health
health
=
healthIndicator
.
health
();
Health
health
=
healthIndicator
.
health
();
assertThat
(
health
.
getStatus
()).
isEqualTo
(
Status
.
DOWN
);
assertThat
(
health
.
getStatus
()).
isEqualTo
(
Status
.
DOWN
);
assertThat
((
(
String
)
health
.
getDetails
().
get
(
"error"
))
assertThat
((
String
)
health
.
getDetails
().
get
(
"error"
))
.
contains
(
"Connection failed"
)
)
;
.
contains
(
"Connection failed"
);
verify
(
mongoTemplate
).
executeCommand
(
"{ buildInfo: 1 }"
);
verify
(
mongoTemplate
).
executeCommand
(
"{ buildInfo: 1 }"
);
}
}
...
...
spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java
View file @
f896ff9a
...
@@ -816,7 +816,7 @@ public class SpringApplicationTests {
...
@@ -816,7 +816,7 @@ public class SpringApplicationTests {
this
.
context
=
application
.
run
();
this
.
context
=
application
.
run
();
assertThat
(
this
.
context
.
getEnvironment
())
assertThat
(
this
.
context
.
getEnvironment
())
.
isNotInstanceOf
(
StandardServletEnvironment
.
class
);
.
isNotInstanceOf
(
StandardServletEnvironment
.
class
);
assertThat
(
this
.
context
.
getEnvironment
().
getProperty
(
"foo"
));
assertThat
(
this
.
context
.
getEnvironment
().
getProperty
(
"foo"
))
.
isEqualTo
(
"bar"
)
;
assertThat
(
this
.
context
.
getEnvironment
().
getPropertySources
().
iterator
().
next
()
assertThat
(
this
.
context
.
getEnvironment
().
getPropertySources
().
iterator
().
next
()
.
getName
()).
isEqualTo
(
.
getName
()).
isEqualTo
(
TestPropertySourceUtils
.
INLINED_PROPERTIES_PROPERTY_SOURCE_NAME
);
TestPropertySourceUtils
.
INLINED_PROPERTIES_PROPERTY_SOURCE_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