org.opengis.cite.ogcapitiles10.datasettilesets.LandingPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ets-ogcapi-tiles10 Show documentation
Show all versions of ets-ogcapi-tiles10 Show documentation
Describe purpose of test suite.
package org.opengis.cite.ogcapitiles10.datasettilesets;
import static io.restassured.http.ContentType.JSON;
import static io.restassured.http.Method.GET;
import static org.opengis.cite.ogcapitiles10.EtsAssert.assertTrue;
import static org.opengis.cite.ogcapitiles10.SuiteAttribute.REQUIREMENTCLASSES;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.opengis.cite.ogcapitiles10.CommonFixture;
import org.opengis.cite.ogcapitiles10.conformance.RequirementClass;
import org.testng.ITestContext;
import org.testng.SkipException;
import org.testng.annotations.Test;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
/**
* Updated at the OGC API - Tiles Sprint 2020 by ghobona
*
* A.2.2. Landing Page {root}/
*
* @author Lyn Goltz
*/
public class LandingPage extends CommonFixture {
private JsonPath response;
/**
*
* Implements Abstract test A.10: /conf/dataset-tilesets/landingpage
* Addresses Requirement 11: /req/dataset-tilesets/landingpage
*
*/
@Test(description = "Implements Abstract test A.10, addresses Requirement 11", groups = "landingpage")
public void landingPageRetrieval(ITestContext testContext) {
Object requirementsClassesObject = testContext.getSuite().getAttribute(REQUIREMENTCLASSES.getName());
if (requirementsClassesObject instanceof List>) {
List> requirementsClassesList = (List>) requirementsClassesObject;
if (!requirementsClassesList.contains(RequirementClass.DATASET_TILES)) {
throw new SkipException(dataset_tilesets_conformance_class_not_implemented);
}
}
if (rootUri == null) {
throw new SkipException(missing_landing_page_error_message);
}
Response request = init().baseUri(rootUri.toString()).accept(JSON).when().request(GET, "/");
request.then().statusCode(200);
response = request.jsonPath();
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy