Update tests to use absolute paths

Fixes gh-8260
This commit is contained in:
Eleftheria Stein 2020-03-31 18:05:27 -04:00
parent 615f9a3f05
commit 298d40b7a5
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class BasicAuthenticationTests extends AbstractWebServerIntegrationTests
@Test @Test
public void httpBasicWhenAuthenticationRequiredAndNotAuthenticatedThen401() throws Exception { public void httpBasicWhenAuthenticationRequiredAndNotAuthenticatedThen401() throws Exception {
MockMvc mockMvc = createMockMvc("classpath:/spring/http-security-basic.xml", "classpath:/spring/in-memory-provider.xml", "classpath:/spring/testapp-servlet.xml"); MockMvc mockMvc = createMockMvc("classpath:/spring/http-security-basic.xml", "classpath:/spring/in-memory-provider.xml", "classpath:/spring/testapp-servlet.xml");
mockMvc.perform(get("secure/index")) mockMvc.perform(get("/secure/index"))
.andExpect(status().isUnauthorized()); .andExpect(status().isUnauthorized());
} }

View File

@ -47,7 +47,7 @@ public class ConcurrentSessionManagementTests extends AbstractWebServerIntegrati
MockMvc mockMvc = createMockMvc("classpath:/spring/http-security-concurrency.xml", "classpath:/spring/in-memory-provider.xml", "classpath:/spring/testapp-servlet.xml"); MockMvc mockMvc = createMockMvc("classpath:/spring/http-security-concurrency.xml", "classpath:/spring/in-memory-provider.xml", "classpath:/spring/testapp-servlet.xml");
mockMvc.perform(get("secure/index").session(session1)) mockMvc.perform(get("/secure/index").session(session1))
.andExpect(status().is3xxRedirection()); .andExpect(status().is3xxRedirection());
MockHttpServletRequestBuilder login1 = login() MockHttpServletRequestBuilder login1 = login()