summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-05 11:13:04 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-05 11:39:00 +0000
commitfd48b965752151c415bfd6de01516eef3c183756 (patch)
tree632faf0a5609459d3e3cf5402ef1b9aabab8f7ac /config-model
parent76858e7407600b448696e7ddf101ee6431cec2ee (diff)
test new and old code path
Diffstat (limited to 'config-model')
-rwxr-xr-xconfig-model/src/test/java/com/yahoo/searchdefinition/derived/AnnotationsTestCase.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/AnnotationsTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/AnnotationsTestCase.java
index be57e59030d..65d6c15d3e2 100755
--- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/AnnotationsTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/AnnotationsTestCase.java
@@ -70,8 +70,18 @@ public class AnnotationsTestCase extends AbstractExportingTestCase {
* An annotation declared before document {} won't work, no doc type to add it to.
*/
@Test(expected = IllegalArgumentException.class)
- public void testAnnotationOutsideOfDocumment() throws IOException, ParseException {
- assertCorrectDeriving("annotationsoutsideofdocument");
+ public void testAnnotationOutsideOfDocumentOld() throws IOException, ParseException {
+ assertCorrectDeriving("annotationsoutsideofdocument",
+ new TestProperties().setExperimentalSdParsing(false));
+ }
+
+ /**
+ * An annotation declared before document {} should work.
+ */
+ @Test
+ public void testAnnotationOutsideOfDocumentNew() throws IOException, ParseException {
+ assertCorrectDeriving("annotationsoutsideofdocument",
+ new TestProperties().setExperimentalSdParsing(true));
}
}