Class ReferencingTest


@Deprecated public class ReferencingTest extends ObjectFactoryTest
Deprecated.
Renamed as ObjectFactoryTest.
Tests objects that combine all referencing sub-packages, especially crs, cs and datum. The instances are created using the various factories 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.ReferencingTest;

@RunWith(JUnit4.class)
public class MyTest extends ReferencingTest {
    public MyTest() {
        super(new MyCRSFactory(), new MyCSFactory(), new MyDatumFactory());
    }
}
Since:
2.3
  • Constructor Details

    • ReferencingTest

      public ReferencingTest(CRSFactory crsFactory, CSFactory csFactory, DatumFactory datumFactory)
      Deprecated.
      Creates a new test using the given factories. If a given factory is null, then the tests which depend on it will be skipped.
      Parameters:
      crsFactory - factory for creating CoordinateReferenceSystem instances.
      csFactory - factory for creating CoordinateSystem instances.
      datumFactory - factory for creating Datum instances.