diff options
author | jonmv <venstad@gmail.com> | 2022-04-08 13:19:54 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-04-08 13:19:54 +0200 |
commit | 0be38d50daebe7187e026b57b38902bc53e408d6 (patch) | |
tree | 25f738e19d365cb638c4b0fa6c2a1e625572b484 /config-model/src/test/java/com/yahoo/searchdefinition | |
parent | c94ec50b539ff6d0d3273029f1278e8c90274a57 (diff) |
Use null rather than "" for no load balancer, as intended(?), and fix some assertions
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/parser/IntermediateParserTestCase.java | 15 |
1 files changed, 8 insertions, 7 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 c686a813c9f..1e0c554af81 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,13 +74,14 @@ public class IntermediateParserTestCase { @Test public void backwards_path_is_disallowed() { - 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")); + 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()); } void checkFileParses(String fileName) throws Exception { |