Package org.iogp.gigs

Class Test3209


@DisplayName("User-defined vertical datum") public class Test3209 extends Series3000<VerticalDatum>
Verifies that the software allows correct definition of a user-defined vertical datum. Each test method in this class instantiate exactly one VerticalDatum.
Test description
Test method: Create user-defined vertical datum for each of several different datums.
Test data: GIGS_user_3209_VerticalDatum.txt
Tested API: DatumFactory.createVerticalDatum(Map, VerticalDatumType).
Expected result: The software should accept the test data. The properties of the created objects will be compared with the properties given to the factory method.

Usage example

in order to specify their factories and run the tests in a JUnit framework, implementers can define a subclass in their own test suite as in the example below:
public class MyTest extends Test3209 {
    public MyTest() {
        super(new MyDatumFactory());
    }
}
Since:
1.0
  • Field Details

    • datumFactory

      protected final DatumFactory datumFactory
      Factory to use for building VerticalDatum instances, or null if none.
  • Constructor Details

    • Test3209

      public Test3209(DatumFactory datumFactory)
      Creates a new test using the given factory. If the given factory is null, then the tests will be skipped.
      Parameters:
      datumFactory - factory for creating VerticalDatum instances.
  • Method Details

    • getIdentifiedObject

      public VerticalDatum getIdentifiedObject() throws FactoryException
      Returns the vertical datum instance to be tested. When this method is invoked for the first time, it creates the vertical datum to test by invoking the DatumFactory.createVerticalDatum(Map, VerticalDatumType) method with the current datumType value in argument. The created object is then cached and returned in all subsequent invocations of this method.
      Specified by:
      getIdentifiedObject in class Series3000<VerticalDatum>
      Returns:
      the vertical datum instance to test.
      Throws:
      FactoryException - if an error occurred while creating the vertical datum instance.
    • GIGS_66601

      @Test @DisplayName("GIGS vertical datum U") public void GIGS_66601() throws FactoryException
      Tests “GIGS vertical datum U” vertical datum from the factory.
      • GIGS datum code: 66601
      • GIGS datum name: GIGS vertical datum U
      • Datum Origin: Origin U
      • EPSG equivalence: 5134 – Black Sea
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
    • GIGS_66602

      @Test @DisplayName("GIGS vertical datum V") public void GIGS_66602() throws FactoryException
      Tests “GIGS vertical datum V” vertical datum from the factory.
      • GIGS datum code: 66602
      • GIGS datum name: GIGS vertical datum V
      • Datum Origin: Origin V
      • EPSG equivalence: 5105 – Baltic 1977
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.
    • GIGS_66603

      @Test @DisplayName("GIGS vertical datum W") public void GIGS_66603() throws FactoryException
      Tests “GIGS vertical datum W” vertical datum from the factory.
      • GIGS datum code: 66603
      • GIGS datum name: GIGS vertical datum W
      • Datum Origin: Origin W
      • EPSG equivalence: 5106 – Caspian Sea
      Throws:
      FactoryException - if an error occurred while creating the datum from the properties.