GeodeticObjectFactoryTest changes for revisions 25049:25050

The only change in this commit is to rename FactoryFinder as ReferencingFactoryFinder. We do not plan to port [Referencing]FactoryFinder in SIS, since the plan is to replace them by some dependency injection mechanism. In the particular case of test cases however SIS uses something similar, while much simpler: DefaultFactories (an internal class).

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/FactoriesTest.java
Revision 25049Revision 25050
out.println("---------------------");
out.println();
out.println("create Coodinate Reference System....1: ");
final         DatumFactory datumFactory = FactoryFinder.getDatumFactory        (null);
final            CSFactory    csFactory = FactoryFinder.getCSFactory           (null);
final           CRSFactory   crsFactory = FactoryFinder.getCRSFactory          (null);
final MathTransformFactory    mtFactory = FactoryFinder.getMathTransformFactory(null);

final Ellipsoid airy1830;
final Unit meters = SI.METER;
out.println("---------------------");
out.println();
out.println("create Coodinate Reference System....1: ");
final         DatumFactory datumFactory = ReferencingFactoryFinder.getDatumFactory        (null);
final            CSFactory    csFactory = ReferencingFactoryFinder.getCSFactory           (null);
final           CRSFactory   crsFactory = ReferencingFactoryFinder.getCRSFactory          (null);
final MathTransformFactory    mtFactory = ReferencingFactoryFinder.getMathTransformFactory(null);

final Ellipsoid airy1830;
final Unit meters = SI.METER;
out.println();
out.println("Testing classification names");
out.println("----------------------------");
final MathTransformFactory mtFactory = FactoryFinder.getMathTransformFactory(null);
final Collection methods = mtFactory.getAvailableMethods(Projection.class);
for (final Iterator it=methods.iterator(); it.hasNext();) {
    final OperationMethod    method = (OperationMethod) it.next();
out.println();
out.println("Testing classification names");
out.println("----------------------------");
final MathTransformFactory mtFactory = ReferencingFactoryFinder.getMathTransformFactory(null);
final Collection methods = mtFactory.getAvailableMethods(Projection.class);
for (final Iterator it=methods.iterator(); it.hasNext();) {
    final OperationMethod    method = (OperationMethod) it.next();
for (int i=0; i<3; i++) {
    switch (i) {
        case  0: factory = new DatumAliases(factory);           break;
        case  1: factory = FactoryFinder.getDatumFactory(null); break;
        case  2: ((DatumAliases) factory).freeUnused();         break;
        default: throw new AssertionError(); // Should not occurs.
    }
for (int i=0; i<3; i++) {
    switch (i) {
        case  0: factory = new DatumAliases(factory);           break;
        case  1: factory = ReferencingFactoryFinder.getDatumFactory(null); break;
        case  2: ((DatumAliases) factory).freeUnused();         break;
        default: throw new AssertionError(); // Should not occurs.
    }