Class OpenApiUtils
java.lang.Object
org.opengis.cite.ogcapiedr10.openapi3.OpenApiUtils
- Author:
 - Lyn Goltz
 
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFreeFormParameterSupportedForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName) static booleanisParameterSupportedForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName, String queryParam) static LinkparseApiUrl(io.restassured.path.json.JsonPath jsonPath) static com.reprezen.kaizen.oasparser.model3.ParameterretrieveParameterByName(String collectionItemPath, com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String name) retrieveTestPoints(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse all test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollectionMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the COLLECTION METADATA test points for the passed collectionName including the extended path from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollections(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, int noOfCollection) Parse the COLLECTIONS test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForCollectionsMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the COLLECTIONS METADATA test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForConformance(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the CONFORMANCE test points from the passed OpenApi3 document as described in A.4.3.retrieveTestPointsForFeature(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName, String featureId) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3. 
- 
Method Details
- 
retrieveTestPoints
static List<TestPoint> retrieveTestPoints(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse all test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForConformance
public static List<TestPoint> retrieveTestPointsForConformance(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the CONFORMANCE test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForCollectionsMetadata
public static List<TestPoint> retrieveTestPointsForCollectionsMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut) Parse the COLLECTIONS METADATA test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForCollectionMetadata
public static List<TestPoint> retrieveTestPointsForCollectionMetadata(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the COLLECTION METADATA test points for the passed collectionName including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernullcollectionName- the extended path, may benull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForCollections
public static List<TestPoint> retrieveTestPointsForCollections(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, int noOfCollection) Parse the COLLECTIONS test points from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernullnoOfCollection- the number of collections to return test points for (-1 means the test points of all collections should be returned)- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForCollection
public static List<TestPoint> retrieveTestPointsForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernullcollectionName- the extended path, may benull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveTestPointsForFeature
public static List<TestPoint> retrieveTestPointsForFeature(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, URI iut, String collectionName, String featureId) Parse the test points with the passed path including the extended path from the passed OpenApi3 document as described in A.4.3. Identify the Test Points.- Parameters:
 apiModel- nevernulliut- the url of the instance under test, nevernullcollectionName- the extended path, may benullfeatureId- the id of the feature, nevernull- Returns:
 - the parsed test points, may be empty but never 
null 
 - 
retrieveParameterByName
 - 
isFreeFormParameterSupportedForCollection
public static boolean isFreeFormParameterSupportedForCollection(com.reprezen.kaizen.oasparser.model3.OpenApi3 apiModel, String collectionName)  - 
isParameterSupportedForCollection
 - 
parseApiUrl
 
 -