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
b5246af1
Commit
b5246af1
authored
Oct 28, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4330 from izeye/patch-46
* pr/4330: Remove unnecessary String concatenation
parents
831fa1d3
f7632226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BasicErrorControllerIntegrationTests.java
...toconfigure/web/BasicErrorControllerIntegrationTests.java
+4
-4
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java
View file @
b5246af1
...
...
@@ -91,7 +91,7 @@ public class BasicErrorControllerIntegrationTests {
load
();
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
.
getForEntity
(
createUrl
(
"?trace=true"
),
Map
.
class
);
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"
"
+
"
Internal Server Error"
,
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"Internal Server Error"
,
IllegalStateException
.
class
,
"Expected!"
,
"/"
);
assertFalse
(
"trace parameter should not be set"
,
entity
.
getBody
().
containsKey
(
"trace"
));
...
...
@@ -103,7 +103,7 @@ public class BasicErrorControllerIntegrationTests {
load
(
"--server.error.include-stacktrace=on-trace-param"
);
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
.
getForEntity
(
createUrl
(
"?trace=true"
),
Map
.
class
);
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"
"
+
"
Internal Server Error"
,
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"Internal Server Error"
,
IllegalStateException
.
class
,
"Expected!"
,
"/"
);
assertTrue
(
"trace parameter should be set"
,
entity
.
getBody
().
containsKey
(
"trace"
));
...
...
@@ -115,7 +115,7 @@ public class BasicErrorControllerIntegrationTests {
load
(
"--server.error.include-stacktrace=never"
);
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
.
getForEntity
(
createUrl
(
"?trace=true"
),
Map
.
class
);
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"
"
+
"
Internal Server Error"
,
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"Internal Server Error"
,
IllegalStateException
.
class
,
"Expected!"
,
"/"
);
assertFalse
(
"trace parameter should not be set"
,
entity
.
getBody
().
containsKey
(
"trace"
));
...
...
@@ -127,7 +127,7 @@ public class BasicErrorControllerIntegrationTests {
load
(
"--server.error.include-stacktrace=always"
);
ResponseEntity
<
Map
>
entity
=
new
TestRestTemplate
()
.
getForEntity
(
createUrl
(
"?trace=false"
),
Map
.
class
);
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"
"
+
"
Internal Server Error"
,
assertErrorAttributes
(
entity
.
getBody
(),
"500"
,
"Internal Server Error"
,
IllegalStateException
.
class
,
"Expected!"
,
"/"
);
assertTrue
(
"trace parameter should be set"
,
entity
.
getBody
().
containsKey
(
"trace"
));
...
...
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