aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/derived/MatchSettingsResolvingTestCase.java
blob: a7df862134a24bcd69011b9425c6b6ab79e6f9d0 (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.Test;

import java.io.IOException;

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

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

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

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

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

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

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

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

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


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

    
}