use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyUserPath.
private void verifyUserPath(JsonMapObject paths, OpenApiConfiguration cfg) {
// /user
JsonMapObject user = paths.getJsonMapProperty("/user");
assertEquals(1, user.size());
verifyUserPathPost(user, cfg);
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyUserCreateWithListPath.
private void verifyUserCreateWithListPath(JsonMapObject paths, OpenApiConfiguration cfg) {
// /user/createWithList
JsonMapObject user = paths.getJsonMapProperty("/user/createWithList");
assertEquals(1, user.size());
verifyUserCreateWithListPathPost(user, cfg);
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyServersProperty.
private void verifyServersProperty(JsonMapObject sw3) {
List<Map<String, Object>> servers = sw3.getListMapProperty("servers");
assertEquals(1, servers.size());
JsonMapObject server = new JsonMapObject(servers.get(0));
assertEquals(1, server.size());
assertEquals("http://petstore.swagger.io/v2", server.getStringProperty("url"));
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyStoreOrderPath.
private void verifyStoreOrderPath(JsonMapObject paths, OpenApiConfiguration cfg) {
// /store/order
JsonMapObject store = paths.getJsonMapProperty("/store/order");
assertEquals(1, store.size());
verifyStoreOrderPathPost(store, cfg);
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyPetFindByTagsPath.
private void verifyPetFindByTagsPath(JsonMapObject paths) {
// /pet/findByTags
JsonMapObject pet = paths.getJsonMapProperty("/pet/findByTags");
assertEquals(1, pet.size());
verifyPetFindByStatusOrTags(pet, "findPetsByTags");
}
Aggregations