public class BeforeTests extends AbstractTemporalTest
Tests the response to a GetFeature request that includes the temporal predicate Before. Either operand may represent an instant or a period.

The following figure illustrates the relationship. A solid line denotes a temporal property; a dashed line denotes a literal time value that specifies the temporal extent of interest.

Before relationship
  • Constructor Details

    • BeforeTests

      public BeforeTests()
  • Method Details

    • implementsBeforeOperator

      @BeforeClass public void implementsBeforeOperator()
      Checks if the temporal operator "Before" is supported. If not, the relevant tests are skipped.
    • beforePeriod

      public void beforePeriod(ProtocolBinding binding, QName featureType)
      [Test] Submits a GetFeature request containing the Before temporal predicate with a literal gml:TimePeriod value. The response entity must contain only feature instances having a temporal property value that is before the specified period.
      Parameters:
      binding - The ProtocolBinding to use for this request.
      featureType - A QName representing the qualified name of some feature type.
    • assertBefore

      void assertBefore(List<Node> temporalNodes, org.apache.xerces.xs.XSElementDeclaration propertyDecl, Document gmlTimeLiteral)
      Asserts that all temporal values in the given list occur before the specified GML temporal value.
      Parameters:
      temporalNodes - A list of simple or complex temporal values.
      propertyDecl - An element declaration for a temporal property.
      gmlTimeLiteral - A document that contains a GML representation of an instant or period.