修复注册姓名校验失效问题,修复文件上传无法回调问题
This commit is contained in:
@@ -10,6 +10,8 @@ import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
|
||||
import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
|
||||
@@ -28,6 +30,7 @@ public class LoginControllerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Transactional
|
||||
public void doLogin() throws Exception {
|
||||
//测试正常登录
|
||||
mvc.perform(MockMvcRequestBuilders.post("/login/dologin").param("colname", "root").param("colpassword", "admin"))
|
||||
|
||||
Reference in New Issue
Block a user