use of org.jboss.jandex.Type in project wildfly-swarm by wildfly-swarm.
the class ExpectationTests method testGenericsWithBounds.
@Test
public void testGenericsWithBounds() throws IOException, JSONException {
String name = GenericTypeTestContainer.class.getName();
Type pType = getFieldFromKlazz(name, "genericWithBounds").type();
OpenApiDataObjectScanner scanner = new OpenApiDataObjectScanner(index, pType);
Schema result = scanner.process();
printToConsole(name, result);
assertJsonEquals(name, "generic.withBounds.expected.json", result);
}
use of org.jboss.jandex.Type in project wildfly-swarm by wildfly-swarm.
the class SpecialCaseTests method testCollection_SimpleTerminalType.
@Test
public void testCollection_SimpleTerminalType() throws IOException, JSONException {
String name = SpecialCaseTestContainer.class.getName();
Type pType = getFieldFromKlazz(name, "listOfString").type();
OpenApiDataObjectScanner scanner = new OpenApiDataObjectScanner(index, pType);
Schema result = scanner.process();
printToConsole(name, result);
assertJsonEquals(name, "special.simple.expected.json", result);
}
use of org.jboss.jandex.Type in project wildfly-swarm by wildfly-swarm.
the class SpecialCaseTests method testCollection_WildcardWithExtendBound.
@Test
public void testCollection_WildcardWithExtendBound() throws IOException, JSONException {
String name = SpecialCaseTestContainer.class.getName();
Type pType = getFieldFromKlazz(name, "listExtendsFoo").type();
OpenApiDataObjectScanner scanner = new OpenApiDataObjectScanner(index, pType);
Schema result = scanner.process();
printToConsole(name, result);
assertJsonEquals(name, "special.wildcardWithExtendBound.expected.json", result);
}
Aggregations