Commit 00fbf78c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

check if login and password are valid

parent 44f5bce3
package lcsb.mapviewer.web;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import java.awt.geom.Point2D;
import java.util.Arrays;
......@@ -100,6 +101,7 @@ abstract public class ControllerIntegrationTest {
.param("login", login)
.param("password", password);
return (MockHttpSession) mockMvc.perform(request)
.andExpect(status().is2xxSuccessful())
.andReturn()
.getRequest()
.getSession();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment