diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java index 2833e0ef004..f37a39d6f93 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/InheritanceTestCase.java @@ -158,18 +158,4 @@ public class InheritanceTestCase extends AbstractExportingTestCase { assertEquals(new Index("prefixed", true), childSearch.getIndex("prefixed")); } - @Test - public void testFailTypesMismatch() throws IOException, ParseException { - String root = "src/test/derived/inheritancebadtypes/"; - List<String> files = new LinkedList<>(); - files.add(root + "parent.sd"); - files.add(root + "child.sd"); - File toDir = tmpDir.newFolder("to"); - try { - Deriver.deriveDocuments(files, toDir.getPath()); - fail("Import of child SD with type mismatch worked."); - } catch (RuntimeException e) { - assertTrue(e.getMessage().matches(".*already contains field 'a'.*")); - } - } } |