aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/derived/AttributesTestCase.java
blob: 99f74231b0492cdf12b4617e94f80bcfd2751c22 (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.derived;

import com.yahoo.schema.parser.ParseException;
import org.junit.jupiter.api.Test;

import java.io.IOException;

/**
 * Tests attribute settings
 *
 * @author bratseth
 */
public class AttributesTestCase extends AbstractExportingTestCase {

    @Test
    void testDocumentDeriving() throws IOException, ParseException {
        assertCorrectDeriving("attributes");
    }

    @Test
    void testArrayOfStructAttribute() throws IOException, ParseException {
        assertCorrectDeriving("array_of_struct_attribute");
    }

    @Test
    void testMapOfStructAttribute() throws IOException, ParseException {
        assertCorrectDeriving("map_of_struct_attribute");
    }

    @Test
    void testMapOfPrimitiveAttribute() throws IOException, ParseException {
        assertCorrectDeriving("map_attribute");
    }

}