diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-06-17 13:26:30 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-06-17 13:26:30 +0200 |
commit | 0fd074975bd6bf45bfe886331c9c5af17af6e5bf (patch) | |
tree | 7efebd489d95716b3e7c3862cb5c51f6a259f95f /config-model/src/test/java/com/yahoo | |
parent | f27580a1b0db23197140dc397688c510acd2b45b (diff) |
Internal structs take precedence over external documents
Diffstat (limited to 'config-model/src/test/java/com/yahoo')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java | 20 |
1 files changed, 20 insertions, 0 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 new file mode 100644 index 00000000000..fda9e6327ce --- /dev/null +++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/NameCollisionTestCase.java @@ -0,0 +1,20 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +package com.yahoo.searchdefinition.derived; + +import org.junit.Test; + +/** + * Verifies that a struct in a document type is preferred over another dopcument type + * of the same name. + * + * @author bratseth + */ +public class NameCollisionTestCase extends AbstractExportingTestCase { + + @Test + public void testNameCollision() throws Exception { + assertCorrectDeriving("namecollision", "collisionstruct", new TestableDeployLogger()); + } + +} |