我正在对控制器进行单元测试:
@Test
public void testStudentInSectionForm() throws Exception {
mockMvc.perform(get("/organizationnamanement"))
.andExpect(status().isOk())
.andExpect(redirectedUrl("organizationnamanement"));
}
在这里我收到一个错误:
Url expected <organizationnamanement> but was null;
谁能告诉我如何解决这个问题?