Search in sources :

Example 1 with RamlValidator

use of guru.nidi.ramltester.core.RamlValidator in project okapi by folio-org.

the class RamlTest method testOkapiRaml.

@Test
public void testOkapiRaml() {
    RamlDefinition api = RamlLoaders.fromFile("src/main/raml").load("okapi.raml");
    // Don't check Validation.DESCRIPTION
    RamlValidator v = api.validator().withChecks(Validation.URI_PARAMETER, Validation.PARAMETER, Validation.EMPTY);
    Assert.assertThat(v.validate(), validates());
}
Also used : RamlDefinition(guru.nidi.ramltester.RamlDefinition) RamlValidator(guru.nidi.ramltester.core.RamlValidator) Test(org.junit.Test)

Aggregations

RamlDefinition (guru.nidi.ramltester.RamlDefinition)1 RamlValidator (guru.nidi.ramltester.core.RamlValidator)1 Test (org.junit.Test)1