aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/restapi/PathTest.java
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-03-29 15:40:20 +0200
committerMartin Polden <mpolden@mpolden.no>2022-03-29 16:21:31 +0200
commitae39d47bce33f33a5854c44fc3c264787ecfd1bd (patch)
tree371b799bb7688c3f7530129327d2b49e3dcc6f64 /container-core/src/test/java/com/yahoo/restapi/PathTest.java
parent259e35ea3aea20a639a1870cfb9a6232a9521f51 (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.java13
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}"));