diff options
author | Arne H Juul <arnej@yahooinc.com> | 2022-03-07 14:55:03 +0000 |
---|---|---|
committer | Arne H Juul <arnej@yahooinc.com> | 2022-03-07 14:58:45 +0000 |
commit | 23db7be16bf266f478f773654137cac43c162fdd (patch) | |
tree | b0214f98ed195a3e8f89279af4120217db17c0c6 /config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java | |
parent | dd8ce8c64faaf340eea43e09115c462ad923746b (diff) |
struct/document name collision fails
* the unit tests claims that this works, and seems to verify that.
But the generated config isn't valid.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java')
-rwxr-xr-x | config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java index 2ce88e2148d..c42076424c7 100755 --- a/config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/StructTestCase.java @@ -6,6 +6,7 @@ import com.yahoo.document.config.DocumenttypesConfig; import com.yahoo.document.config.DocumentmanagerConfig; import com.yahoo.searchdefinition.derived.Deriver; import com.yahoo.searchdefinition.parser.ParseException; +import org.junit.Ignore; import org.junit.Test; import java.io.IOException; import static org.junit.Assert.fail; @@ -35,9 +36,12 @@ public class StructTestCase extends AbstractSchemaTestCase { } @Test + @Ignore public void testStructAndDocumentWithSameNames() { try { DocumenttypesConfig.Builder dt = Deriver.getDocumentTypesConfig("src/test/examples/structanddocumentwithsamenames.sd"); + // while the above line may work, the config generated will fail. + // See also NameCollisionTestCase. } catch (Exception e) { fail("Should not have thrown exception " + e); } |