org.opengis.test.referencing.gigs
Class Series3000Test

Show UML class diagram
Object
  extended by TestCase
      extended by Series3000Test

public class Series3000Test
extends TestCase

Test for new CRS definition. The test procedures in this series are designed to evaluate the software’s capabilities for adding user-defined CRS and transformation definitions

Since:
3.1
See Also:
ObjectFactoryTest, TestSuite

Field Summary
protected  CoordinateOperationFactory copFactory
          Factory to use for build user's coordinate operations, or null if none.
protected  CRSFactory crsFactory
          Factory to use for build user's coordinate reference systems, or null if none.
protected  CSFactory csFactory
          Factory to use for build user's coordinate systems and axes, or null if none.
protected  DatumFactory datumFactory
          Factory to use for build user's datum, ellipsoid and prime meridians, or null if none.
 
Fields inherited from class TestCase
configurationTip, listener, NO_FACTORY, validators
 
Constructor Summary
Series3000Test(CRSFactory crsFactory, CSFactory csFactory, DatumFactory datumFactory, CoordinateOperationFactory copFactory)
          Creates a new test using the given factories.
 
Method Summary
 Configuration configuration()
          Returns information about the configuration of the test which has been run.
static List<Factory[]> factories()
          Returns a default set of factories to use for running the tests.
 void test3002()
          Verifies that the software allows correct definition of a user-defined ellipsoid.
 void test3003()
          Verifies that the software allows correct definition of a user-defined prime meridian.
 void test3004()
          Verifies that the software allows correct definition of a user-defined geodetic datum and geodetic CRS.
 void test3005()
          Verifies that the software allows correct definition of a user-defined map projection.
 
Methods inherited from class TestCase
addTestListener, factories, factories, getEnabledFlags, removeTestListener
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crsFactory

protected final CRSFactory crsFactory
Factory to use for build user's coordinate reference systems, or null if none.


csFactory

protected final CSFactory csFactory
Factory to use for build user's coordinate systems and axes, or null if none.


datumFactory

protected final DatumFactory datumFactory
Factory to use for build user's datum, ellipsoid and prime meridians, or null if none.


copFactory

protected final CoordinateOperationFactory copFactory
Factory to use for build user's coordinate operations, or null if none.

Constructor Detail

Series3000Test

public Series3000Test(CRSFactory crsFactory,
                      CSFactory csFactory,
                      DatumFactory datumFactory,
                      CoordinateOperationFactory copFactory)
Creates a new test using the given factories. If a given factory is null, then the tests which depend on it will be skipped.

Parameters:
crsFactory - Factory for creating CoordinateReferenceSystem instances.
csFactory - Factory for creating CoordinateSystem instances.
datumFactory - Factory for creating Datum instances.
copFactory - Factory for creating CoordinateOperation instances.
Method Detail

factories

public static List<Factory[]> factories()
Returns a default set of factories to use for running the tests. Those factories are given in arguments to the constructor when this test class is instantiated directly by JUnit (for example as a suite element), instead than subclassed by the implementor. The factories are fetched as documented in the TestCase.factories(Class[]) javadoc.

Returns:
The default set of arguments to be given to the Series3000Test constructor.

configuration

public Configuration configuration()
Returns information about the configuration of the test which has been run. This method returns a map containing:

Overrides:
configuration in class TestCase
Returns:
The configuration of the test being run, or an empty map if none. This method returns a modifiable map in order to allow subclasses to modify it.
See Also:
ImplementationDetails.configuration(Factory[])

test3002

public void test3002()
              throws FactoryException
Verifies that the software allows correct definition of a user-defined ellipsoid.

Test method: Create user-defined ellipsoid for each of several different ellipsoids.
Test data: EPSG Dataset and file GIGS_3002_userEllipsoid.csv.
Tested API: DatumFactory.createEllipsoid(Map, double, double, Unit) and
DatumFactory.createFlattenedSphere(Map, double, double, Unit).
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.

Throws:
FactoryException - If an error occurred while creating an ellipsoid.

test3003

public void test3003()
              throws FactoryException
Verifies that the software allows correct definition of a user-defined prime meridian.

Test method: Create user-defined prime meridian for each of several different prime meridians.
Test data: EPSG Dataset and file GIGS_3003_userPrimeMeridian.csv.
Tested API: DatumFactory.createPrimeMeridian(Map, double, Unit).
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.

Throws:
FactoryException - If an error occurred while creating a prime meridian.

test3004

public void test3004()
              throws FactoryException
Verifies that the software allows correct definition of a user-defined geodetic datum and geodetic CRS.

Test method: Create user-defined geodetic datum for each of several different datums. Create user-defined geodetic CRS for each of several different CRSs.
Test data: EPSG Dataset and file GIGS_3004_userGeodeticDatumCRS.csv.
Tested API: CRSFactory.createGeocentricCRS(Map, GeodeticDatum, CartesianCS) and
CRSFactory.createGeographicCRS(Map, GeodeticDatum, EllipsoidalCS).
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.

Throws:
FactoryException - If an error (other than unsupported code) occurred while creating a unit from an EPSG code.

test3005

public void test3005()
              throws FactoryException
Verifies that the software allows correct definition of a user-defined map projection.

Test method: Create user-defined projection for each of several different map projections.
Test data: EPSG Dataset and file GIGS_3005_userProjection.csv.
Tested API: CoordinateOperationFactory.getOperationMethod(String) and
CoordinateOperationFactory.createDefiningConversion(Map, OperationMethod, ParameterValueGroup).
Expected result: The geoscience software should accept the test data. The order in which the projection parameters are entered is not critical, although that given in the test dataset is recommended.

Throws:
FactoryException - If an error (other than unsupported code) occurred while creating a unit from an EPSG code.


Copyright © 1994-2013 Open Geospatial Consortium. All Rights Reserved.