summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-10 09:38:26 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-10 16:22:15 +0000
commitdc9214eb70fc12864c355bdfc5c0211f2b841931 (patch)
tree5135d3e2e1b50ddca41a20a84b35dee165e66ca8 /config-model
parent3f8c3be5bad8acad24b9d67e6f44c6225bf56f81 (diff)
expect any RuntimeException
* after switching config style, this gets further in the pipeline, but still fails due to collision. But now we get IllegalStateException instead of IllegalArgumentException; handle both the same way.
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java
index 70f6187be12..61e80e6d701 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java
@@ -19,21 +19,22 @@ public class NameCollisionTestCase extends AbstractExportingTestCase {
@Test
public void testNameCollision() throws Exception {
- var ex = assertThrows(IllegalArgumentException.class, () -> {
+ var ex = assertThrows(RuntimeException.class, () -> {
assertCorrectDeriving("namecollision", "collisionstruct",
new TestProperties().setExperimentalSdParsing(false),
new TestableDeployLogger());
var docman = DocumentTypeManager.fromFile("temp/namecollision/documentmanager.cfg");
});
+ ex.printStackTrace();
System.err.println("MSG 1: "+ex.getClass()+" -> "+ex.getMessage());
- var ey = assertThrows(IllegalArgumentException.class, () -> {
+ var ey = assertThrows(RuntimeException.class, () -> {
assertCorrectDeriving("namecollision", "collisionstruct",
new TestProperties().setExperimentalSdParsing(true),
new TestableDeployLogger());
var docman = DocumentTypeManager.fromFile("temp/namecollision/documentmanager.cfg");
});
- System.err.println("MSG 2: "+ey.getMessage());
-
+ ey.printStackTrace();
+ System.err.println("MSG 2: "+ey.getClass()+" -> "+ey.getMessage());
}
}