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.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.opengis.test.referencing.CRSTest;
@RunWith(JUnit4.class)
public class MyTest extends CRSTest {
public MyTest() {
super(new MyCRSAuthorityFactory());
}
}
- Since:
- 2.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CRSAuthorityFactory
Deprecated.The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.Fields inherited from class TestCase
configurationTip, listener, units, validators
-
Constructor Summary
ConstructorsConstructorDescriptionCRSTest
(CRSAuthorityFactory factory) Deprecated.Creates a new test using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns a default set of factories to use for running the tests.void
Deprecated.Tests the creation of the WGS84 crs from the EPSG code.Methods inherited from class ReferencingTestCase
verifyCoordinateSystem, verifyFlattenedSphere, verifyGeographicExtent, verifyIdentification, verifyParameter, verifyPrimeMeridian, verifyTimeExtent, verifyVerticalExtent
Methods inherited from class TestCase
configuration, factories, 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
-
factories
Deprecated.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 of subclassed by the implementer. The factories are fetched as documented in theTestCase.factories(Class[])
javadoc.- Returns:
- the default set of arguments to be given to the
CRSTest
constructor. - Since:
- 3.1
-
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
.