This repository has been archived on 2026-01-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ptp/src/test/java/edu/msudenver/tsp/website/controller/LogInControllerTest.java

25 lines
716 B
Java

package edu.msudenver.tsp.website.controller;
import edu.msudenver.tsp.services.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class LogInControllerTest {
@Autowired UserService userService;
private final LogInController logInController = new LogInController(userService);
@Test
public void testEnterTheoremPage() {
ModelAndView modelAndView = logInController.enterLogInPage();
assertNotNull(modelAndView);
assertEquals("LogIn", modelAndView.getViewName());
}
}