aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/searchdefinition/derived/DuplicateStructTestCase.java
blob: 05b16c9d30b3a886d1cb0b97bc51c7eb4a3a2289 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;

import com.yahoo.config.model.deploy.TestProperties;
import org.junit.Test;

/**
 * @author arnej
 */
public class DuplicateStructTestCase extends AbstractExportingTestCase {

    @Test
    public void exact_duplicate_struct_works() throws Exception {
        assertCorrectDeriving("duplicate_struct", "foobar",
                              new TestProperties()
                              .setExperimentalSdParsing(false)
                              .setUseV8DocManagerCfg(true),
                              new TestableDeployLogger());
    }

    @Test
    public void exact_duplicate_struct_works_new() throws Exception {
        assertCorrectDeriving("duplicate_struct", "foobar",
                              new TestProperties()
                              .setExperimentalSdParsing(true)
                              .setUseV8DocManagerCfg(true),
                              new TestableDeployLogger());
    }

}