TransformationOperation extends TransformationUtility<T> { @Override public final PerformResult perform(File transformedAppFolder, TransformationContext transformationContext) throws TransformationUtilityException { PerformResult performResult = super.perform(transformedAppFolder, transformationContext); if (readFile != null) { readFile.deleteOnExit(); } return performResult; } TransformationOperation(); @Override final PerformResult perform(File transformedAppFolder, TransformationContext transformationContext);  }
@Test public void performTest() throws IOException { TransformationOperation transformationOperation = getNewTestTransformationOperation().relative("pom.xml"); assertFalse(transformationOperation.hasBeenPerformed()); PerformResult performResult = transformationOperation.perform(transformedAppFolder, transformationContext); assertTrue(transformationOperation.hasBeenPerformed()); assertNotNull(performResult); assertEquals(performResult.getType(), PerformResult.Type.EXECUTION_RESULT); assertEquals(performResult.getExecutionResult().getType(), TOExecutionResult.Type.NO_OP); TOExecutionResult executionResult = (TOExecutionResult) performResult.getExecutionResult(); assertFalse(executionResult.isExceptionType()); assertEquals(executionResult.getDetails(), "nothing to be changed"); }