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 Test3203 {
public MyTest() {
super(new MyFactories());
}
}
The prime meridian Greenwich longitude, in decimal degrees.
This field is set by all test methods before to create and verify the PrimeMeridian instance.
greenwichLongitude
publicdoublegreenwichLongitude
The prime meridian Greenwich longitude, in unit of angularUnit.
This field is set by all test methods before to create and verify the PrimeMeridian instance.
angularUnit
publicUnit<Angle>angularUnit
The unit of measurement of greenwichLongitude.
This field is set by all test methods before to create and verify the PrimeMeridian instance.
Creates a new test using the given factories.
The factories needed by this class are DatumFactory
and optionally CSAuthorityFactory (for sexagesimal units).
If a requested factory is null, then the tests which depend on it will be skipped.
Authority factory usage
The coordinate system factory is used only if the test needs a sexagesimal unit,
because the standard SystemOfUnits API cannot create them.
If needed, the EPSG code used is 9110.
Parameters:
factories - factories for creating the instances to test.
Returns the prime meridian instance to be tested. When this method is invoked for the first time,
it creates the prime meridian to test by invoking the corresponding method from DatumFactory
with the current properties map in argument.
The created object is then cached and returned in all subsequent invocations of this method.