Fix tests to check for forward to index

This commit is contained in:
Thomas Turrell-Croft 2020-04-28 10:54:49 +02:00 committed by Thomas Turrell-Croft
parent 7241496289
commit 1077dc82a5
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class UserControllerUnitTest {
when(mockedBindingResult.hasErrors()).thenReturn(false);
assertThat(userController.addUser(user, mockedBindingResult, mockedModel)).isEqualTo("index");
assertThat(userController.addUser(user, mockedBindingResult, mockedModel)).isEqualTo("redirect:/index");
}
@Test
@ -64,7 +64,7 @@ public class UserControllerUnitTest {
when(mockedBindingResult.hasErrors()).thenReturn(false);
assertThat(userController.updateUser(1l, user, mockedBindingResult, mockedModel)).isEqualTo("index");
assertThat(userController.updateUser(1l, user, mockedBindingResult, mockedModel)).isEqualTo("redirect:/index");
}
@Test