Added test and some fixes
This commit is contained in:
+5
@@ -28,6 +28,11 @@ public class UserControllerUnitTest {
|
||||
userController = new UserController(mockedUserRepository);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenCalledIndex_thenCorrect() {
|
||||
assertThat(userController.showUserList(mockedModel)).isEqualTo("index");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenCalledshowSignUpForm_thenCorrect() {
|
||||
User user = new User("John", "john@domain.com");
|
||||
|
||||
Reference in New Issue
Block a user