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
3fd59748
Commit
3fd59748
authored
Jan 17, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
f87e8d1d
682d0f52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SampleHypermediaUiSecureApplicationTests.java
...a/ui/secure/SampleHypermediaUiSecureApplicationTests.java
+3
-3
No files found.
spring-boot-samples/spring-boot-sample-hypermedia-ui-secure/src/test/java/sample/hypermedia/ui/secure/SampleHypermediaUiSecureApplicationTests.java
View file @
3fd59748
...
...
@@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
properties
=
{
"endpoints.env.sensitive=false"
})
"endpoints.env.sensitive=false"
,
"foo=bar"
})
public
class
SampleHypermediaUiSecureApplicationTests
{
@Autowired
...
...
@@ -47,10 +47,10 @@ public class SampleHypermediaUiSecureApplicationTests {
ResponseEntity
<
String
>
entity
=
this
.
restTemplate
.
getForEntity
(
"/env"
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
ResponseEntity
<
String
>
user
=
this
.
restTemplate
.
getForEntity
(
"/env/
user
"
,
ResponseEntity
<
String
>
user
=
this
.
restTemplate
.
getForEntity
(
"/env/
foo
"
,
String
.
class
);
assertThat
(
user
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
OK
);
assertThat
(
user
.
getBody
()).
contains
(
"{\"
user
\":"
);
assertThat
(
user
.
getBody
()).
contains
(
"{\"
foo
\":"
);
}
@Test
...
...
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