Fix tests to check for forward to index
This commit is contained in:
parent
7241496289
commit
1077dc82a5
|
@ -41,7 +41,7 @@ public class UserControllerUnitTest {
|
||||||
|
|
||||||
when(mockedBindingResult.hasErrors()).thenReturn(false);
|
when(mockedBindingResult.hasErrors()).thenReturn(false);
|
||||||
|
|
||||||
assertThat(userController.addUser(user, mockedBindingResult, mockedModel)).isEqualTo("index");
|
assertThat(userController.addUser(user, mockedBindingResult, mockedModel)).isEqualTo("redirect:/index");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -64,7 +64,7 @@ public class UserControllerUnitTest {
|
||||||
|
|
||||||
when(mockedBindingResult.hasErrors()).thenReturn(false);
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue