From f76322263b24ddd03d8b387ed32c6a77a4e2301e Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 28 Oct 2015 22:54:16 +0900 Subject: [PATCH] Remove unnecessary String concatenation Closes gh-4330 --- .../web/BasicErrorControllerIntegrationTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java index b07e6005b65..e79e26029a3 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java @@ -91,7 +91,7 @@ public class BasicErrorControllerIntegrationTests { load(); ResponseEntity 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 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 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 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"));