Search in sources :

Example 1 with Bar

use of org.wildfly.swarm.microprofile.openapi.runtime.entity.Bar in project wildfly-swarm by wildfly-swarm.

the class ExpectationTests method testUnresolvable.

/**
 * Unresolvable type parameter.
 */
@Test
@Ignore
public void testUnresolvable() throws IOException, JSONException {
    DotName bar = createSimple(Bar.class.getName());
    OpenApiDataObjectScanner scanner = new OpenApiDataObjectScanner(index, ClassType.create(bar, Type.Kind.CLASS));
    Schema result = scanner.process();
    printToConsole(bar.local(), result);
    assertJsonEquals(bar.local(), "unresolvable.expected.json", result);
}
Also used : Bar(org.wildfly.swarm.microprofile.openapi.runtime.entity.Bar) Schema(org.eclipse.microprofile.openapi.models.media.Schema) DotName(org.jboss.jandex.DotName) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Schema (org.eclipse.microprofile.openapi.models.media.Schema)1 DotName (org.jboss.jandex.DotName)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 Bar (org.wildfly.swarm.microprofile.openapi.runtime.entity.Bar)1