@Test public void abortOnFailureTest() { TransformationUtility transformationUtility = getNewTestTransformationUtility(); assertFalse(transformationUtility.isAbortOnFailure()); assertNull(transformationUtility.getAbortionMessage()); assertEquals(transformationUtility.abortOnFailure(true), transformationUtility); assertTrue(transformationUtility.isAbortOnFailure()); assertEquals(transformationUtility.abortOnFailure(false), transformationUtility); assertFalse(transformationUtility.isAbortOnFailure()); assertEquals(transformationUtility.abortOnFailure("Let's crash it!"), transformationUtility); assertTrue(transformationUtility.isAbortOnFailure()); assertEquals(transformationUtility.getAbortionMessage(), "Let's crash it!"); assertEquals(transformationUtility.abortOnFailure(false), transformationUtility); assertNull(transformationUtility.getAbortionMessage()); }
public final T abortOnFailure(boolean abort) { abortOnFailure = abort; abortionMessage = null; return (T) this; }
TransformationUtility implements Cloneable { public final T abortOnFailure(boolean abort) { abortOnFailure = abort; abortionMessage = null; return (T) this; } }
TransformationUtility implements Cloneable { public final T abortOnFailure(boolean abort) { abortOnFailure = abort; abortionMessage = null; return (T) this; } @SuppressWarnings("PMD.UnnecessaryConstructor")  TransformationUtility(); }
TransformationUtility implements Cloneable { public final T abortOnFailure(boolean abort) { abortOnFailure = abort; abortionMessage = null; return (T) this; } @SuppressWarnings("PMD.UnnecessaryConstructor")  TransformationUtility(); final String getName(); T setContextAttributeName(String contextAttributeName); String getContextAttributeName(); final T setParent(TransformationUtilityParent parent, int order); TransformationUtilityParent getParent(); TransformationTemplate getTransformationTemplate(); abstract String getDescription(); int getOrder(); final T relative(String relativePath); final T set(String propertyName, String contextAttributeName); T absolute(String contextAttributeName); T absolute(String contextAttributeName, String additionalRelativePath); @SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE") PerformResult perform(File transformedAppFolder, TransformationContext transformationContext); final T abortOnFailure(boolean abort); final T abortOnFailure(String abortionMessage); String getAbortionMessage(); final boolean isAbortOnFailure(); boolean isSaveResult(); final boolean hasBeenPerformed(); final T dependsOn(String... dependencies); final T executeIf(String conditionAttributeName); final T executeIf(UtilityCondition utilityCondition); final T executeUnless(String conditionAttributeName); String getIfConditionAttributeName(); String getUnlessConditionAttributeName(); final boolean isFileSet(); final boolean wasFileExplicitlySet(); @Override String toString(); @Override T clone(); T copy(); @Override @SuppressWarnings("PMD.SimplifyBooleanReturns") boolean equals(Object obj); @Override int hashCode(); }
TransformationUtility implements Cloneable { public final T abortOnFailure(boolean abort) { abortOnFailure = abort; abortionMessage = null; return (T) this; } @SuppressWarnings("PMD.UnnecessaryConstructor")  TransformationUtility(); final String getName(); T setContextAttributeName(String contextAttributeName); String getContextAttributeName(); final T setParent(TransformationUtilityParent parent, int order); TransformationUtilityParent getParent(); TransformationTemplate getTransformationTemplate(); abstract String getDescription(); int getOrder(); final T relative(String relativePath); final T set(String propertyName, String contextAttributeName); T absolute(String contextAttributeName); T absolute(String contextAttributeName, String additionalRelativePath); @SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE") PerformResult perform(File transformedAppFolder, TransformationContext transformationContext); final T abortOnFailure(boolean abort); final T abortOnFailure(String abortionMessage); String getAbortionMessage(); final boolean isAbortOnFailure(); boolean isSaveResult(); final boolean hasBeenPerformed(); final T dependsOn(String... dependencies); final T executeIf(String conditionAttributeName); final T executeIf(UtilityCondition utilityCondition); final T executeUnless(String conditionAttributeName); String getIfConditionAttributeName(); String getUnlessConditionAttributeName(); final boolean isFileSet(); final boolean wasFileExplicitlySet(); @Override String toString(); @Override T clone(); T copy(); @Override @SuppressWarnings("PMD.SimplifyBooleanReturns") boolean equals(Object obj); @Override int hashCode();  }