Class Capability3Tests

java.lang.Object
org.opengis.cite.sta10.filteringExtension.Capability3Tests

public class Capability3Tests extends Object
Includes various tests of "A.2 Filtering Extension" Conformance class.
  • Field Details

    • rootUri

      public String rootUri
      The root URL of the SensorThings service under the test
  • Constructor Details

    • Capability3Tests

      public Capability3Tests()
  • Method Details

    • obtainTestSubject

      @BeforeClass public void obtainTestSubject(org.testng.ITestContext testContext)
      This method will be run before starting the test for this conformance class. It creates a set of entities to start testing query options.
      Parameters:
      testContext - The test context to find out whether this class is requested to test or not
    • readEntitiesWithSelectQO

      public void readEntitiesWithSelectQO()
      This method is testing $select query option. It tests $select for collection of entities with 1 level and 2 levels resource path. It also tests $select for one or more properties.
    • readEntitiesWithExpandQO

      public void readEntitiesWithExpandQO()
      This method is testing $expand query option. It tests $expand for collection of entities with 1 level and 2 levels resource path. It also tests $expand for one or more collections, and also tests multilevel $expand.
    • readEntitiesWithTopQO

      public void readEntitiesWithTopQO()
      This method is testing $top query option. It tests $top for collection of entities with 1 level and 2 levels resource path. It also tests @iot.nextLink with regard to $top.
    • readEntitiesWithSkipQO

      public void readEntitiesWithSkipQO()
      This method is testing $skip query option. It tests $skip for collection of entities with 1 level and 2 levels resource path. It also tests @iot.nextLink with regard to $skip.
    • readEntitiesWithOrderbyQO

      public void readEntitiesWithOrderbyQO()
      This method is testing $orderby query option. It tests $orderby for collection of entities with 1 level and 2 levels resource path. It also tests $orderby for one or more properties, and ascending and descending sorting.
    • readEntitiesWithCountQO

      public void readEntitiesWithCountQO()
      This method is testing $count query option. It tests $count for collection of entities with 1 level and 2 levels resource path.
    • readEntitiesWithFilterQO

      public void readEntitiesWithFilterQO() throws UnsupportedEncodingException
      This method is testing $filter query option for <, <=, =, >=, > on properties. It tests $filter for collection of entities with 1 level and 2 levels resource path.
      Throws:
      UnsupportedEncodingException - Should not happen, UTF-8 should always be supported.
    • checkQueriesPriorityOrdering

      public void checkQueriesPriorityOrdering()
      This method is testing the correct priority of the query options. It uses $count, $top, $skip, $orderby, and $filter togther and check the priority in result.
    • deleteEverythings

      @AfterClass public void deleteEverythings()
      This method is run after all the tests of this class is run and clean the database.