Package com.hypnoticocelot.jaxrs.doclet.model

Examples of com.hypnoticocelot.jaxrs.doclet.model.ApiDeclaration


        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.primitives");
        new JaxRsAnnotationParser(options, rootDoc).run();

        List<String> primitives = Arrays.asList("boolean", "byte", "short", "int", "long", "float", "double", "string", "date");
        for (String primitive : primitives) {
            final ApiDeclaration api = loadFixture("/fixtures/primitives/" + primitive + "s.json", ApiDeclaration.class);
            verify(recorderMock).record(any(File.class), eq(api));
        }
    }
View Full Code Here


    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.jaxb");
        new JaxRsAnnotationParser(options, rootDoc).run();

        final ApiDeclaration api = loadFixture("/fixtures/jaxb/jaxb.json", ApiDeclaration.class);
        verify(recorderMock).record(any(File.class), eq(api));
    }
View Full Code Here

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.jackson");
        new JaxRsAnnotationParser(options, rootDoc).run();

        final ApiDeclaration api = loadFixture("/fixtures/jackson/jackson.json", ApiDeclaration.class);
        verify(recorderMock).record(any(File.class), eq(api));
    }
View Full Code Here

        assertThat("JavaDoc generation failed", parsingResult, equalTo(true));

        final ResourceListing expectedListing = loadFixture("/fixtures/sample/service.json", ResourceListing.class);
        verify(recorderMock).record(any(File.class), eq(expectedListing));

        final ApiDeclaration expectedDeclaration = loadFixture("/fixtures/sample/foo.json", ApiDeclaration.class);
        verify(recorderMock).record(any(File.class), eq(expectedDeclaration));
    }
View Full Code Here

        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.object");
        new JaxRsAnnotationParser(options, rootDoc).run();

        List<String> primitives = Arrays.asList("object");
        for (String primitive : primitives) {
            final ApiDeclaration api = loadFixture("/fixtures/object/object.json", ApiDeclaration.class);
            verify(recorderMock).record(any(File.class), eq(api));
        }
    }
View Full Code Here

TOP

Related Classes of com.hypnoticocelot.jaxrs.doclet.model.ApiDeclaration

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.