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
d097c9a2
Commit
d097c9a2
authored
Nov 07, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting
parent
6d9abdc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
HealthIndicatorAutoConfigurationTests.java
.../autoconfigure/HealthIndicatorAutoConfigurationTests.java
+10
-5
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationTests.java
View file @
d097c9a2
...
@@ -107,7 +107,8 @@ public class HealthIndicatorAutoConfigurationTests {
...
@@ -107,7 +107,8 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
RedisAutoConfiguration
.
class
,
this
.
context
.
register
(
RedisAutoConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
HealthIndicatorAutoConfiguration
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.redis.enabled:false"
,
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.redis.enabled:false"
,
"management.health.diskspace.enabled:false"
);
"management.health.diskspace.enabled:false"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
@@ -137,7 +138,8 @@ public class HealthIndicatorAutoConfigurationTests {
...
@@ -137,7 +138,8 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
MongoAutoConfiguration
.
class
,
this
.
context
.
register
(
MongoAutoConfiguration
.
class
,
MongoDataAutoConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
MongoDataAutoConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.mongo.enabled:false"
,
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.mongo.enabled:false"
,
"management.health.diskspace.enabled:false"
);
"management.health.diskspace.enabled:false"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
@@ -199,7 +201,8 @@ public class HealthIndicatorAutoConfigurationTests {
...
@@ -199,7 +201,8 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
EmbeddedDataSourceConfiguration
.
class
,
this
.
context
.
register
(
EmbeddedDataSourceConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
HealthIndicatorAutoConfiguration
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.db.enabled:false"
,
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.db.enabled:false"
,
"management.health.diskspace.enabled:false"
);
"management.health.diskspace.enabled:false"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
@@ -229,7 +232,8 @@ public class HealthIndicatorAutoConfigurationTests {
...
@@ -229,7 +232,8 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
RabbitAutoConfiguration
.
class
,
this
.
context
.
register
(
RabbitAutoConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
HealthIndicatorAutoConfiguration
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.rabbit.enabled:false"
,
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.rabbit.enabled:false"
,
"management.health.diskspace.enabled:false"
);
"management.health.diskspace.enabled:false"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
@@ -259,7 +263,8 @@ public class HealthIndicatorAutoConfigurationTests {
...
@@ -259,7 +263,8 @@ public class HealthIndicatorAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
SolrAutoConfiguration
.
class
,
this
.
context
.
register
(
SolrAutoConfiguration
.
class
,
HealthIndicatorAutoConfiguration
.
class
);
HealthIndicatorAutoConfiguration
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.solr.enabled:false"
,
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"management.health.solr.enabled:false"
,
"management.health.diskspace.enabled:false"
);
"management.health.diskspace.enabled:false"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
Map
<
String
,
HealthIndicator
>
beans
=
this
.
context
...
...
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