Package org.raml.emitter

Examples of org.raml.emitter.RamlEmitter


    @Test
    public void emitFullConfigFromRaml()
    {
        Raml raml = parseRaml("org/raml/full-config.yaml");
        RamlEmitter emitter = new RamlEmitter();
        String dumpFromRaml = emitter.dump(raml);
        verifyFullDump(raml, dumpFromRaml);
    }
View Full Code Here


    @Test
    public void emitEmptyBody()
    {
        Raml raml = parseRaml("org/raml/empty-body.raml");
        RamlEmitter emitter = new RamlEmitter();
        emitter.dump(raml);
    }
View Full Code Here

    @Test
    public void emitRegexp()
    {
        Raml raml = parseRaml("org/raml/emitter/pattern.yaml");
        RamlEmitter emitter = new RamlEmitter();
        String dump = emitter.dump(raml);
        assertThat(dump, containsString("([a-zA-Z0-9_\\.\\+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-\\.]+)"));
    }
View Full Code Here

                      "   number:\n" +
                      "    type: number\n" +
                      "    maximum: 9.5\n" +
                      "    minimum: 2.0";
        Raml raml = parseRaml(yaml, "");
        RamlEmitter emitter = new RamlEmitter();
        String dump = emitter.dump(raml);
        assertThat(dump, containsString("maximum: 8"));
        assertThat(dump, not(containsString("maximum: 8.0")));
        assertThat(dump, containsString("minimum: 1"));
        assertThat(dump, not(containsString("minimum: 1.0")));
        assertThat(dump, containsString("maximum: 9.5"));
View Full Code Here

TOP

Related Classes of org.raml.emitter.RamlEmitter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.