aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/derived/MatchSettingsResolvingTestCase.java
blob: ea79766ed8adc1d88de41df11f698dcecd903474 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.derived;

import com.yahoo.config.model.deploy.TestProperties;
import com.yahoo.schema.parser.ParseException;
import org.junit.jupiter.api.Test;

import java.io.IOException;

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

    @Test
    void testSimpleDefaults() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_simple_def", new TestProperties());
    }

    @Test
    void testSimpleWithStructSettings() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_simple_wss",
                new TestProperties());
    }

    @Test
    void testSimpleWithFieldSettings() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_simple_wfs", new TestProperties());
    }

    @Test
    void testSimpleStructAndFieldSettings() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_simple_wss_wfs", new TestProperties());
    }

    @Test
    void testMapDefaults() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_map_def", new TestProperties());
    }

    @Test
    void testMapWithStructSettings() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_map_wss", new TestProperties());
    }

    @Test
    void testMapWithFieldSettings() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_map_wfs", new TestProperties());
    }

    @Test
    void testMapAfter() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_map_after", new TestProperties());
    }


    @Test
    void testMapInStruct() throws IOException, ParseException {
        assertCorrectDeriving("matchsettings_map_in_struct", new TestProperties());
    }

    
}