diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java index a25db0b9bc..0b3640a7e0 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java @@ -36,12 +36,16 @@ public class MavenIT0056Test throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0056" ); + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); + verifier.setAutoclean( false ); + verifier.deleteDirectory( "target" ); verifier.executeGoal( "initialize" ); - verifier.assertFilePresent( "target/first-exec.txt" ); - verifier.assertFilePresent( "target/file.txt" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); + + verifier.assertFilePresent( "target/first-exec.txt" ); + verifier.assertFilePresent( "target/second-exec.txt" ); } } diff --git a/its/core-it-suite/src/test/resources/it0056/pom.xml b/its/core-it-suite/src/test/resources/it0056/pom.xml index bc922db531..ab449c00de 100644 --- a/its/core-it-suite/src/test/resources/it0056/pom.xml +++ b/its/core-it-suite/src/test/resources/it0056/pom.xml @@ -37,26 +37,28 @@ under the License. org.apache.maven.its.plugins - maven-it-plugin-file + maven-it-plugin-log-file 2.1-SNAPSHOT first-exec validate - file + reset - target/first-exec.txt + target/first-exec.txt second-exec initialize - file + reset - + + target/second-exec.txt +