Package org.opengis.test.referencing
Class CRSTest
- Object
-
- TestCase
-
- ReferencingTestCase
-
- CRSTest
-
@Deprecated public class CRSTest extends ReferencingTestCase
Deprecated.Renamed asAuthorityFactoryTest
.TestsCoordinateReferenceSystem
and related objects from theorg.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, implementors 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
Fields Modifier and Type Field Description protected CRSAuthorityFactory
factory
Deprecated.The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.-
Fields inherited from class TestCase
configurationTip, listener, units, validators
-
-
Constructor Summary
Constructors Constructor Description CRSTest(CRSAuthorityFactory factory)
Deprecated.Creates a new test using the given factory.
-
Method Summary
Modifier and Type Method Description static List<Factory[]>
factories()
Deprecated.Returns a default set of factories to use for running the tests.void
testCRSAuthorityCreation()
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, factories, getEnabledFlags
-
-
-
-
Field Detail
-
factory
protected final CRSAuthorityFactory factory
Deprecated.The authority factory for creating aCoordinateReferenceSystem
from a code, ornull
if none.
-
-
Constructor Detail
-
CRSTest
public CRSTest(CRSAuthorityFactory factory)
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 Detail
-
factories
public static List<Factory[]> 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 than subclassed by the implementor. 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
public void testCRSAuthorityCreation() throws NoSuchAuthorityCodeException, FactoryException
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 an other raison.
-
-