diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2022-04-08 16:24:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 16:24:09 +0200 |
commit | 05606dfe1bba4bcadc1ae4fae95b626f6441cd52 (patch) | |
tree | f35c24e158a5cd86af535f51f1a6093d8c80322c /config-model/src/test/java/com | |
parent | db9e570a36decb24e6cb13f44bd0ff444ab762e3 (diff) |
Revert "Jonmv/unify hostname classes"
Diffstat (limited to 'config-model/src/test/java/com')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java index 1e0c554af81..c686a813c9f 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java @@ -74,14 +74,13 @@ public class IntermediateParserTestCase { @Test public void backwards_path_is_disallowed() { - assertEquals("'..' is not allowed in path", - assertThrows(IllegalArgumentException.class, - () -> parseString("schema foo {\n" + - " constant my_constant_tensor {\n" + - " file: foo/../bar\n" + - " type: tensor<float>(x{},y{})\n" + - " }\n" + - "}\n")).getMessage()); + assertThrows("'..' is not allowed in path", IllegalArgumentException.class, + () -> parseString("schema foo {\n" + + " constant my_constant_tensor {\n" + + " file: foo/../bar\n" + + " type: tensor<float>(x{},y{})\n" + + " }\n" + + "}\n")); } void checkFileParses(String fileName) throws Exception { |