Class AuthorityFactoryTest


  • public class AuthorityFactoryTest
    extends ReferencingTestCase
    Tests the creation of referencing objects from the authority factories given at construction time.

    Many ProjectedCRS instances tested in this class use the same projections than the MathTransform instances tested in ParameterizedTransformTest. However the later test class expects (λ,φ) input ordinates in degrees and (x,y) output ordinates in metres, while this AuthorityFactoryTest class expects input and output ordinates in CRS-dependent units and axis order.

    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.AuthorityFactoryTest;
    
    @RunWith(JUnit4.class)
    public class MyTest extends AuthorityFactoryTest {
        public MyTest() {
            super(new MyCRSAuthorityFactory(), new MyCSAuthorityFactory(), new MyDatumAuthorityFactory());
        }
    }
    Since:
    2.3
    See Also:
    ObjectFactoryTest, ParameterizedTransformTest, TestSuite