Class VersioningTests

java.lang.Object
org.opengis.cite.iso19142.BaseFixture
org.opengis.cite.iso19142.versioning.VersioningTests

public class VersioningTests extends BaseFixture
Provides test methods that verify the behavior of the IUT with respect to creating and navigating feature versions.
  • Constructor Details

    • VersioningTests

      public VersioningTests()
  • Method Details

    • getDataSamplerFromContext

      @BeforeClass public void getDataSamplerFromContext(org.testng.ITestContext testContext)
    • deleteModifiedFeatures

      @AfterClass public void deleteModifiedFeatures()
    • firstVersionHasNoPredecessor

      public void firstVersionHasNoPredecessor()
      [Test] Submits a request to insert a feature. The response is expected to contain a single fes:ResourceId element with version="1" and the previousRid attribute NOT set. A subsequent query to retrieve the LAST version shall reveal that its state is "valid".
    • updatedVersionHasSupersededPredecessor

      public void updatedVersionHasSupersededPredecessor()
      [Test] Submits a request to update a feature property (gml:name). The response is expected to contain a single fes:ResourceId element with the previousRid attribute set. A subsequent query to retrieve the PREVIOUS version shall reveal that its state is "superseded".
    • updateSupersededVersion

      public void updateSupersededVersion()
      [Test] Submits a request to update a superseded version (whose state is NOT "valid"). An exception report is expected in response; it must contain the error code OperationProcessingFailed and refer to the update handle. TODO: Enable this when expected behavior is clarified.
    • replacementVersionHasNoSuccessor

      public void replacementVersionHasNoSuccessor()
      [Test] Submits a request to replace a feature version. The response is expected to contain a single fes:ResourceId element with the previousRid attribute set. A subsequent query to retrieve the NEXT version shall produce an empty response.
    • deletedFeatureIsRetired

      public void deletedFeatureIsRetired()
      [Test] Submits a request to delete a feature. The response is expected to report totalDeleted = 1. A subsequent query to retrieve the LAST version shall reveal that its state is "retired".