Skip to content

Commit

Permalink
solve problem in appController
Browse files Browse the repository at this point in the history
  • Loading branch information
Wabri committed Nov 29, 2017
1 parent e1ac13c commit bd65c35
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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) {
Expand All @@ -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);
}

Expand Down

0 comments on commit bd65c35

Please sign in to comment.