Skip to content

Commit

Permalink
Merge pull request #32 from nmco/fix-soap-skip
Browse files Browse the repository at this point in the history
Resolves #29, SOAP related test fails instead of being skipped
  • Loading branch information
lgoltz committed Dec 4, 2017
2 parents a976edd + 291410f commit 90e6d80
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -15,6 +15,7 @@
import org.opengeospatial.cite.wmts10.ets.core.util.ServiceMetadataUtils;
import org.opengeospatial.cite.wmts10.ets.core.util.WmtsSoapContainer;
import org.opengeospatial.cite.wmts10.ets.testsuite.getcapabilities.AbstractBaseGetCapabilitiesFixture;
import org.testng.SkipException;
import org.testng.annotations.Test;

/**
Expand All @@ -36,8 +37,10 @@ public void wmtsGetCapabilitiesURLExists() {
getCapabilitiesURI = ServiceMetadataUtils.getOperationEndpoint_SOAP( this.wmtsCapabilities,
WMTS_Constants.GET_CAPABILITIES,
ProtocolBinding.POST );
assertTrue( getCapabilitiesURI != null,
"GetCapabilities (GET) endpoint not found or SOAP is not supported in ServiceMetadata capabilities document." );
if ( getCapabilitiesURI == null ) {
throw new SkipException(
"GetCapabilities (POST) endpoint not found or SOAP is not supported in ServiceMetadata capabilities document.");
}
}

@Test(description = "NSG Web Map Tile Service (WMTS) 1.0.0, Requirement 16", dependsOnMethods = "wmtsGetCapabilitiesURLExists")
Expand Down

0 comments on commit 90e6d80

Please sign in to comment.