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
cc8ecb6f
Commit
cc8ecb6f
authored
Dec 12, 2016
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear VCAP_APPLICATION after tests
So that other CF tests do not fail.
parent
95ee1452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
EnvironmentEndpointTests.java
...ework/boot/actuate/endpoint/EnvironmentEndpointTests.java
+7
-0
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EnvironmentEndpointTests.java
View file @
cc8ecb6f
...
...
@@ -19,6 +19,7 @@ package org.springframework.boot.actuate.endpoint;
import
java.util.Collections
;
import
java.util.Map
;
import
org.junit.After
;
import
org.junit.Test
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
...
...
@@ -45,6 +46,12 @@ public class EnvironmentEndpointTests extends AbstractEndpointTests<EnvironmentE
super
(
Config
.
class
,
EnvironmentEndpoint
.
class
,
"env"
,
true
,
"endpoints.env"
);
}
@Override
@After
public
void
close
()
{
System
.
clearProperty
(
"VCAP_SERVICES"
);
}
@Test
public
void
invoke
()
throws
Exception
{
assertThat
(
getEndpointBean
().
invoke
()).
isNotEmpty
();
...
...
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