SPR-5973: UriComponents now encapsulates a PathCompont, switching between string paths and path segment lists automatically.

This commit is contained in:
Arjen Poutsma
2011-09-14 14:09:57 +00:00
parent 782c2a4657
commit 3f2ea7f50e
6 changed files with 340 additions and 101 deletions

View File

@@ -16,19 +16,20 @@
package org.springframework.web.servlet.support;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockServletContext;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.GenericWebApplicationContext;
import static org.junit.Assert.*;
/**
* @author Dave Syer
*
@@ -56,7 +57,6 @@ public class RequestContextTests {
assertEquals("foo/bar", context.getContextUrl("bar"));
}
@org.junit.Ignore // TODO: Arjen to address in SPR-5973
@Test
public void testGetContextUrlStringMap() throws Exception {
request.setContextPath("foo/");