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