Search in sources :

Example 1 with OpenApiDocumentation

use of io.javalin.plugin.openapi.dsl.OpenApiDocumentation in project javalin by tipsy.

the class TestDocumentedHandler method testInheritance.

@Test
public void testInheritance() {
    final DocumentedHandler defaultHandler = new DocumentedHandler(new OpenApiDocumentation(), ctx -> {
    });
    assertTrue(defaultHandler.toString().startsWith("io.javalin.plugin.openapi.dsl.DocumentedHandler"), "actual: " + defaultHandler.toString());
    final DocumentedHandler customHandler = new CustomDocumentedHandler(new OpenApiDocumentation(), ctx -> {
    });
    assertTrue(customHandler.toString().startsWith("io.javalin.plugin.openapi.TestDocumentedHandler$CustomDocumentedHandler"), "actual: " + customHandler.toString());
}
Also used : DocumentedHandler(io.javalin.plugin.openapi.dsl.DocumentedHandler) OpenApiDocumentation(io.javalin.plugin.openapi.dsl.OpenApiDocumentation) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentedHandler (io.javalin.plugin.openapi.dsl.DocumentedHandler)1 OpenApiDocumentation (io.javalin.plugin.openapi.dsl.OpenApiDocumentation)1 Test (org.junit.jupiter.api.Test)1