PAN-54 Created user registration page.

This commit is contained in:
BrittanyBi
2019-03-24 15:37:39 -06:00
parent de5a69d619
commit 0fc825e11b
4 changed files with 123 additions and 0 deletions
@@ -0,0 +1,23 @@
package edu.msudenver.tsp.website.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.web.servlet.ModelAndView;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
@RunWith(MockitoJUnitRunner.class)
public class UserCreationControllerTest {
private final UserCreationController userCreationController = new UserCreationController();
@Test
public void testUserCreationPage() {
final ModelAndView modelAndView = userCreationController.createUserPage();
assertNotNull(modelAndView);
assertEquals("User", modelAndView.getViewName());
}
}