diff --git a/exercise-app/src/test/java/org/exercise/app/AppControllerTest.java b/exercise-app/src/test/java/org/exercise/app/AppControllerTest.java index 2c84f32..da94e6c 100644 --- a/exercise-app/src/test/java/org/exercise/app/AppControllerTest.java +++ b/exercise-app/src/test/java/org/exercise/app/AppControllerTest.java @@ -72,7 +72,7 @@ public void testOtherStringInActionCodeArgument() { } private String concatNewEmployee(String employee) { - return (employee).concat(System.getProperty("line.separator")); + return employee.concat(System.getProperty("line.separator")); } private String createNewEmployee(String id, String name) { @@ -91,8 +91,8 @@ private void assertShowAll(String expected) { assertShowWhat(expected, "", AppController.SHOW_ALL); } - private void assertShowOne(String expected, String id, String thenReturn) { - when(employeeController.getEmployeeById(id)).thenReturn(thenReturn); + private void assertShowOne(String expected, String id, String stringToReturn) { + when(employeeController.getEmployeeById(id)).thenReturn(stringToReturn); assertShowWhat(expected, id, AppController.SHOW_ONE); }