/** * Verifies the properties of the transformation given by {@link #getIdentifiedObject()}. */ private void verifyTransformation() throws FactoryException { final Transformation transformation = getIdentifiedObject(); assertNotNull("Transformation", transformation); validators.validate(transformation); // Transformation identifier. assertContainsCode("Transformation.getIdentifiers()", "EPSG", code, transformation.getIdentifiers()); // Transformation name. if (isStandardNameSupported) { configurationTip = Configuration.Key.isStandardNameSupported; assertEquals("Transformation.getName()", name, getVerifiableName(transformation)); configurationTip = null; } // Operation method. final OperationMethod m = transformation.getMethod(); assertNotNull("Transformation.getMethod()", m); // Operation method name. if (isStandardNameSupported) { configurationTip = Configuration.Key.isStandardNameSupported; assertEquals("Transformation.getMethod().getName()", methodName, getVerifiableName(m)); configurationTip = null; } }
/** * Verifies the properties of the transformation given by {@link #getIdentifiedObject()}. */ private void verifyTransformation() throws FactoryException { final Transformation transformation = getIdentifiedObject(); assertNotNull("Transformation", transformation); validators.validate(transformation); // Transformation identifier. assertContainsCode("Transformation.getIdentifiers()", "EPSG", code, transformation.getIdentifiers()); // Transformation name. if (isStandardNameSupported) { configurationTip = Configuration.Key.isStandardNameSupported; assertEquals("Transformation.getName()", name, getVerifiableName(transformation)); configurationTip = null; } // Operation method. final OperationMethod m = transformation.getMethod(); assertNotNull("Transformation.getMethod()", m); // Operation method name. if (isStandardNameSupported) { configurationTip = Configuration.Key.isStandardNameSupported; assertEquals("Transformation.getMethod().getName()", methodName, getVerifiableName(m)); configurationTip = null; } }