summaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/restapi/PathTest.java
diff options
context:
space:
mode:
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.java4
1 files changed, 2 insertions, 2 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 566209d941b..886b3ba9c87 100644
--- a/container-core/src/test/java/com/yahoo/restapi/PathTest.java
+++ b/container-core/src/test/java/com/yahoo/restapi/PathTest.java
@@ -14,13 +14,13 @@ public class PathTest {
@Test
public void testWithPrefix() {
- // Test that a path with a prefix matches spec
+ // Test that a path with a prefix matches spec without the prefix
Path path = new Path("/ball/a/1/bar/fuz", "/ball");
assertTrue(path.matches("/a/{foo}/bar/{b}"));
assertEquals("1", path.get("foo"));
assertEquals("fuz", path.get("b"));
- // One negative test where the prefix should not count
+ // Also test that prefix does not cause false matches
assertFalse(path.matches("/ball/a/{foo}/zoo/{b}"));
}