|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectTestCase
Series3000Test
public class Series3000Test
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
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 |
|---|
protected final CRSFactory crsFactory
null if none.
protected final CSFactory csFactory
null if none.
protected final DatumFactory datumFactory
null if none.
protected final CoordinateOperationFactory copFactory
null if none.
| Constructor Detail |
|---|
public Series3000Test(CRSFactory crsFactory,
CSFactory csFactory,
DatumFactory datumFactory,
CoordinateOperationFactory copFactory)
null,
then the tests which depend on it will be skipped.
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 |
|---|
public static List<Factory[]> factories()
TestCase.factories(Class[]) javadoc.
Series3000Test constructor.public Configuration configuration()
Configuration.Key of the same name:
configuration in class TestCaseImplementationDetails.configuration(Factory[])
public void test3002()
throws FactoryException
| 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) andDatumFactory.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. |
FactoryException - If an error occurred while creating an ellipsoid.
public void test3003()
throws FactoryException
| 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. |
FactoryException - If an error occurred while creating a prime meridian.
public void test3004()
throws FactoryException
| 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) andCRSFactory.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. |
FactoryException - If an error (other than unsupported code) occurred while creating a unit from an EPSG code.
public void test3005()
throws FactoryException
| 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) andCoordinateOperationFactory.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. |
FactoryException - If an error (other than unsupported code) occurred while creating a unit from an EPSG code.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||