public class DefaultFactoryTest extends TestCase (Code)
Tests transformations from CRS and/or operations created from the EPSG factory, using
the default plugin. If the MS-Access database is installed and the
epsg-access plugin is in the classpath, then the default plugin will be the factory backed by the
MS-Access database. Otherwise, the default will probably be the one backed by the HSQL
database, since this test live in the
epsg-hsql module.
version: $Id: DefaultFactoryTest.java 27848 2007-11-12 13:10:32Z desruisseaux $ author: Martin Desruisseaux author: Vadim Semenov
public void testAccuracy() throws FactoryException(Code)
Fetchs the accuracy declared in all coordinate operations found in the database.
testAuthorityCodes
public void testAuthorityCodes() throws FactoryException(Code)
Tests the
getAuthorityCodes() method.
testConversions
public void testConversions() throws FactoryException(Code)
Tests the creation of
Conversion objects.
testCreation
public void testCreation() throws FactoryException(Code)
Tests creations of CRS objects.
testDescriptionText
public void testDescriptionText() throws FactoryException(Code)
Tests the
AuthorityFactory.getDescriptionText method. Note that the default
implementation of
getDescriptionText(...) invokes
getAuthorityCodes() ,
and concequently this test must be run after
DefaultFactoryTest.testTimeout .
testEquivalent
public void testEquivalent() throws FactoryException(Code)
Compares a WKT found in the field with the EPSG equivalent.
See Also: http://jira.codehaus.org/browse/GEOT-1268
testFind
public void testFind() throws FactoryException(Code)
Make sure that the factory extracted from the registry in the
DefaultFactoryTest.setUp method
is a singleton. It may not be the case when there is a bug in
FactoryRegistry .
Tests the serialization of many
CoordinateOperation objects.
testTimeout
public void testTimeout() throws FactoryException(Code)
Tests closing the factory after the timeout. IMPORTANT: This test must
be run after
DefaultFactoryTest.testCreation and before any call to
getAuthorityCodes() .
testTransformations
public void testTransformations() throws FactoryException(Code)
Tests the creation of
Transformation objects.
testValidArea
public void testValidArea() throws FactoryException, TransformException(Code)