use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyStoreOrderIdPath.
private void verifyStoreOrderIdPath(JsonMapObject paths) {
// /store/order/{orderId}
JsonMapObject store = paths.getJsonMapProperty("/store/order/{orderId}");
assertEquals(2, store.size());
verifyStoreOrderIdPathGet(store);
verifyStoreOrderIdPathDelete(store);
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyUserCreateWithArrayPath.
private void verifyUserCreateWithArrayPath(JsonMapObject paths, OpenApiConfiguration cfg) {
// /user/createWithArray
JsonMapObject user = paths.getJsonMapProperty("/user/createWithArray");
assertEquals(1, user.size());
verifyUserCreateWithArrayPathPost(user, cfg);
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyPetIdPathPost.
private void verifyPetIdPathPost(JsonMapObject pet) {
JsonMapObject petPost = pet.getJsonMapProperty("post");
assertEquals(8, petPost.size());
testCommonVerbProps(petPost, "updatePetWithForm");
List<Map<String, Object>> parameters = petPost.getListMapProperty("parameters");
assertEquals(1, parameters.size());
JsonMapObject pathIdParam = new JsonMapObject(parameters.get(0));
verifyPetIdParameter(pathIdParam);
verifyPetFormContent(petPost, "application/x-www-form-urlencoded", "name", "status");
JsonMapObject responses = petPost.getJsonMapProperty("responses");
assertEquals(1, responses.size());
assertNotNull(responses.getProperty("405"));
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyPetFindByStatusPath.
private void verifyPetFindByStatusPath(JsonMapObject paths) {
// /pet/findByStatus
JsonMapObject pet = paths.getJsonMapProperty("/pet/findByStatus");
assertEquals(1, pet.size());
verifyPetFindByStatusOrTags(pet, "findPetsByStatus");
}
use of org.apache.cxf.jaxrs.json.basic.JsonMapObject in project cxf by apache.
the class SwaggerToOpenApiConversionUtilsTest method verifyPetIdUploadImagePath.
private void verifyPetIdUploadImagePath(JsonMapObject paths) {
// /pet/{petId}/uploadImage
JsonMapObject pet = paths.getJsonMapProperty("/pet/{petId}/uploadImage");
assertEquals(1, pet.size());
verifyPetIdUploadImagePathPost(pet);
}
Aggregations