diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-03-29 15:40:20 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-03-29 16:21:31 +0200 |
commit | ae39d47bce33f33a5854c44fc3c264787ecfd1bd (patch) | |
tree | 371b799bb7688c3f7530129327d2b49e3dcc6f64 /container-core/src/test/java/com/yahoo/restapi/PathTest.java | |
parent | 259e35ea3aea20a639a1870cfb9a6232a9521f51 (diff) |
Remove unused optionalPrefix
Diffstat (limited to 'container-core/src/test/java/com/yahoo/restapi/PathTest.java')
-rw-r--r-- | container-core/src/test/java/com/yahoo/restapi/PathTest.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/container-core/src/test/java/com/yahoo/restapi/PathTest.java b/container-core/src/test/java/com/yahoo/restapi/PathTest.java index 865c8976c56..0deb27ae0f2 100644 --- a/container-core/src/test/java/com/yahoo/restapi/PathTest.java +++ b/container-core/src/test/java/com/yahoo/restapi/PathTest.java @@ -15,19 +15,6 @@ import static org.junit.Assert.assertEquals; public class PathTest { @Test - public void testWithPrefix() { - // Test that a path with a prefix matches spec without the prefix - Path path = new Path(URI.create("/ball/a/1/bar/fuz"), "/ball"); - assertTrue(path.matches("/a/{foo}/bar/{b}")); - assertEquals("1", path.get("foo")); - assertEquals("fuz", path.get("b")); - - // Also test that prefix does not cause false matches - assertFalse(path.matches("/ball/a/{foo}/zoo/{b}")); - } - - - @Test public void testPath() { assertFalse(new Path(URI.create("")).matches("/a/{foo}/bar/{b}")); assertFalse(new Path(URI.create("///")).matches("/a/{foo}/bar/{b}")); |