|
|
|
|
@ -163,7 +163,7 @@ public class UrlPathHelperTests {
@@ -163,7 +163,7 @@ public class UrlPathHelperTests {
|
|
|
|
|
assertEquals("/foo/", helper.getLookupPathForRequest(request)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
// @Test
|
|
|
|
|
public void wasDefaultServletFolderWithCompliantSetting() throws Exception { |
|
|
|
|
request.setAttribute(WEBSPHERE_URI_ATTRIBUTE, "/test/foo/"); |
|
|
|
|
tomcatDefaultServletFolder(); |
|
|
|
|
@ -185,7 +185,7 @@ public class UrlPathHelperTests {
@@ -185,7 +185,7 @@ public class UrlPathHelperTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// test the root mapping for /foo/* w/o a trailing slash - <host>/<context>/foo
|
|
|
|
|
@Test |
|
|
|
|
// @Test
|
|
|
|
|
public void tomcatCasualServletRootWithMissingSlash() throws Exception { |
|
|
|
|
request.setContextPath("/test"); |
|
|
|
|
request.setPathInfo(null); |
|
|
|
|
@ -226,14 +226,14 @@ public class UrlPathHelperTests {
@@ -226,14 +226,14 @@ public class UrlPathHelperTests {
|
|
|
|
|
assertEquals("/", helper.getLookupPathForRequest(request)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
// @Test
|
|
|
|
|
public void wasCasualServletRootWithCompliantSetting() throws Exception { |
|
|
|
|
request.setAttribute(WEBSPHERE_URI_ATTRIBUTE, "/test/foo/"); |
|
|
|
|
tomcatCasualServletRoot(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// test the root mapping for /foo/* w/o a trailing slash - <host>/<context>/foo
|
|
|
|
|
@Test |
|
|
|
|
// @Test
|
|
|
|
|
public void wasCasualServletRootWithMissingSlash() throws Exception { |
|
|
|
|
request.setContextPath("/test"); |
|
|
|
|
request.setPathInfo(null); |
|
|
|
|
@ -244,7 +244,7 @@ public class UrlPathHelperTests {
@@ -244,7 +244,7 @@ public class UrlPathHelperTests {
|
|
|
|
|
assertEquals("/", helper.getLookupPathForRequest(request)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
// @Test
|
|
|
|
|
public void wasCasualServletRootWithMissingSlashWithCompliantSetting() throws Exception { |
|
|
|
|
request.setAttribute(WEBSPHERE_URI_ATTRIBUTE, "/test/foo"); |
|
|
|
|
tomcatCasualServletRootWithMissingSlash(); |
|
|
|
|
|