summaryrefslogtreecommitdiffstats
path: root/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2022-04-09 14:00:04 +0200
committerGitHub <noreply@github.com>2022-04-09 14:00:04 +0200
commit87e5b33c003d07ca585d73e0166857fe22b4c16f (patch)
tree6748bfa41fac16ad9b22d0afba4d150b44414542 /config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
parent80b96d32550ae0df59572a58cd62f507e8068c2c (diff)
parent1c27950698237c7ebe0f8ea7ed5848889d6b4759 (diff)
Merge pull request #22072 from vespa-engine/jonmv/unify-hostname-classes
Jonmv/unify hostname classes
Diffstat (limited to 'config-lib/src/test/java/com/yahoo/config/FileNodeTest.java')
-rw-r--r--config-lib/src/test/java/com/yahoo/config/FileNodeTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java b/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
index 42e4978091d..1ad9f722eca 100644
--- a/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
+++ b/config-lib/src/test/java/com/yahoo/config/FileNodeTest.java
@@ -23,8 +23,9 @@ public class FileNodeTest {
assertEquals("foo.txt", n.value().value());
assertEquals("\"foo.txt\"", n.toString());
- assertEquals("path may not start with '..', but got: foo/../../boo",
- assertThrows(IllegalArgumentException.class, () -> new FileNode("foo/../../boo")).getMessage());
+ assertThrows("path may not start with '..', but got: foo/../../boo",
+ IllegalArgumentException.class,
+ () -> new FileNode("foo/../../boo"));
}
}