summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/searchdefinition/derived/SortingTestCase.java
blob: 1e4556c0de154fa4dc28bcaa588fccdf48cd3539 (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
// 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 com.yahoo.searchdefinition.parser.ParseException;
import org.junit.Test;

import java.io.IOException;

/**
 * Tests sort settings
 *
 * @author baldersheim
 */
public class SortingTestCase extends AbstractExportingTestCase {
    @Test
    public void testDocumentDeriving() throws IOException, ParseException {
        assertCorrectDeriving("sorting",
                              new TestProperties().setExperimentalSdParsing(false));
    }

    @Test
    public void testDocumentDerivingNewParser() throws IOException, ParseException {
        assertCorrectDeriving("sorting",
                              new TestProperties().setExperimentalSdParsing(true));
    }
}