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
7c161b99
Commit
7c161b99
authored
Jan 08, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7907 from eddumelendez:fix_assertions
* pr/7907: Fix incomplete assertions
parents
b9eda3f2
f896ff9a
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 @
7c161b99
...
@@ -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 @
7c161b99
...
@@ -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