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());
}
Aggregations