Object
TestCase
ReferencingTestCase
CRSTest
Deprecated.
Tests
CoordinateReferenceSystem
and related objects
from the org.opengis.referencing.crs
package.
CRS instances are created using the authority factory given at construction time.
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:import org.opengis.test.referencing.CRSTest;
public class MyTest extends CRSTest {
public MyTest() {
super(new MyCRSAuthorityFactory());
}
}
- Since:
- 2.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CRSAuthorityFactory
Deprecated.The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.Fields inherited from class org.opengis.test.TestCase
configurationTip, units, validators
-
Constructor Summary
ConstructorDescriptionCRSTest
(CRSAuthorityFactory factory) Deprecated.Creates a new test using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Tests the creation of the WGS84 crs from the EPSG code.Methods inherited from class org.opengis.test.referencing.ReferencingTestCase
verifyCoordinateSystem, verifyFlattenedSphere, verifyGeographicExtent, verifyIdentification, verifyParameter, verifyPrimeMeridian, verifyTimeExtent, verifyVerticalExtent
Methods inherited from class org.opengis.test.TestCase
configuration, getEnabledFlags
-
Field Details
-
factory
Deprecated.The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.
-
-
Constructor Details
-
CRSTest
Deprecated.Creates a new test using the given factory. If the given factory isnull
, then the tests will be skipped.- Parameters:
factory
- factory for creatingCoordinateReferenceSystem
instances.
-
-
Method Details
-
testCRSAuthorityCreation
Deprecated.Tests the creation of the WGS84 crs from the EPSG code.- Throws:
NoSuchAuthorityCodeException
- if the specified code is not found among the ones present in the database.FactoryException
- if the creation of theCoordinateReferenceSystem
failed for another reason.
-
AuthorityFactoryTest
.