From b2805f87f1a091b3aa557ece97952d8537a837c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Thu, 8 Feb 2018 22:35:05 +0100 Subject: [PATCH] [MNG-5753] support IT re-run without cleaning --- .../it/MavenITmng5753CustomMojoExecutionConfiguratorTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5753CustomMojoExecutionConfiguratorTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5753CustomMojoExecutionConfiguratorTest.java index 1f520dc273..4888f1cca2 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5753CustomMojoExecutionConfiguratorTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5753CustomMojoExecutionConfiguratorTest.java @@ -48,13 +48,15 @@ public class MavenITmng5753CustomMojoExecutionConfiguratorTest verifier.resetStreams(); verifier.verifyErrorFreeLog(); + File configurationFile = new File(projectDir, "configuration.txt"); + configurationFile.delete(); + // build the test project verifier = newVerifier( projectDir.getAbsolutePath(), "remote" ); verifier.executeGoal( "validate" ); verifier.resetStreams(); verifier.verifyErrorFreeLog(); - File configurationFile = new File(projectDir, "configuration.txt"); verifier.assertFilePresent( configurationFile.getCanonicalPath() ); // // The element in the original configuration is "ORIGINAL". We want to assert that our