diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2022-04-08 15:38:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 15:38:48 +0200 |
commit | ab9127171bc616477ff05f1dcde7f82f65a39524 (patch) | |
tree | e4201446c117fa10c12c33de1e52d1c0d8c0b776 /container-core | |
parent | 3cbd3cab73f0b99646476115bfd6d2dd012da8db (diff) | |
parent | bf2c30ea33ab26da9438badeb7148b4c4910af19 (diff) |
Merge pull request #22049 from vespa-engine/jonmv/unify-hostname-classes
Jonmv/unify hostname classes
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/test/java/com/yahoo/restapi/PathTest.java | 6 |
1 files changed, 3 insertions, 3 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 17b35a6343c..b0392c16e2e 100644 --- a/container-core/src/test/java/com/yahoo/restapi/PathTest.java +++ b/container-core/src/test/java/com/yahoo/restapi/PathTest.java @@ -68,9 +68,9 @@ public class PathTest { public void testUrlEncodedPath() { assertTrue(new Path(URI.create("/a/%62/c")).matches("/a/b/c")); assertFalse(new Path(URI.create("/a/b%2fc"), __ -> { }).matches("/a/b/c")); - assertThrows("path segments cannot be \"\", \".\", or \"..\", but got: '..'", - IllegalArgumentException.class, - () -> new Path(URI.create("/foo")).matches("/foo/bar/%2e%2e")); + assertEquals("path segments cannot be \"\", \".\", or \"..\", but got: '..'", + assertThrows(IllegalArgumentException.class, + () -> new Path(URI.create("/foo")).matches("/foo/bar/%2e%2e")).getMessage()); Path path = new Path(URI.create("/%61/%2f/%63"), __ -> { }); assertTrue(path.matches("/a/{slash}/{c}")); |