The only change in this commit is to rename FactoryFinder
as ReferencingFactoryFinder
.
However this change does not apply to SIS since we do not plan to port [Referencing]FactoryFinder
.
The plan is to replace them by some dependency injection mechanism.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r25049:25050 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/test/java/org/geotools/referencing/factory/AuthorityFactoryProxyTest.java
Revision 25049 | Revision 25050 |
---|---|
// Geotools dependencies
import org.geotools.referencing.crs.*;
import org.geotools.referencing.datum.*;
import org.geotools.referencing.FactoryFinder;
/** |
// Geotools dependencies
import org.geotools.referencing.crs.*;
import org.geotools.referencing.datum.*;
import org.geotools.referencing.ReferencingFactoryFinder;
/** |
* Tests {@link AuthorityFactoryProxy#create}. We uses the CRS factory for testing purpose.
*/
public void testCreate() throws FactoryException {
final CRSAuthorityFactory factory = FactoryFinder.getCRSAuthorityFactory("CRS", null);
final CoordinateReferenceSystem expected = factory.createCoordinateReferenceSystem("83");
AuthorityFactoryProxy proxy;
/* |
* Tests {@link AuthorityFactoryProxy#create}. We uses the CRS factory for testing purpose.
*/
public void testCreate() throws FactoryException {
final CRSAuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory("CRS", null);
final CoordinateReferenceSystem expected = factory.createCoordinateReferenceSystem("83");
AuthorityFactoryProxy proxy;
/* |
* Tests {@link AuthorityFactoryProxy#create}. We uses the CRS factory for testing purpose.
*/
public void testCreateEquivalent() throws FactoryException {
final CRSAuthorityFactory factory = FactoryFinder.getCRSAuthorityFactory("CRS", null);
final AuthorityFactoryProxy proxy = AuthorityFactoryProxy.getInstance(GeographicCRS.class, factory);
CoordinateReferenceSystem expected = factory.createCoordinateReferenceSystem("84");
assertSame (expected, proxy.create("84")); |
* Tests {@link AuthorityFactoryProxy#create}. We uses the CRS factory for testing purpose.
*/
public void testCreateEquivalent() throws FactoryException {
final CRSAuthorityFactory factory = ReferencingFactoryFinder.getCRSAuthorityFactory("CRS", null);
final AuthorityFactoryProxy proxy = AuthorityFactoryProxy.getInstance(GeographicCRS.class, factory);
CoordinateReferenceSystem expected = factory.createCoordinateReferenceSystem("84");
assertSame (expected, proxy.create("84")); |