aboutsummaryrefslogtreecommitdiffstats
path: root/config-application-package/src/main/java/com/yahoo/config/model/application/provider/SimpleApplicationValidator.java
blob: 5a6abf2e879e8406c108e2bb87c37ead4d068012 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.application.provider;

import com.yahoo.component.Version;

import java.io.IOException;
import java.io.Reader;

/**
 * Simple Validation of services.xml for unit tests against RELAX NG schemas.
 *
 * @author hmusum
 */
public class SimpleApplicationValidator {

    public static void checkServices(Reader reader, Version version) throws IOException {
        new SchemaValidators(version).servicesXmlValidator().validate(reader);
    }
}