diff --git a/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0070Test.java b/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0070Test.java index 13f8382de4..f4e008df81 100644 --- a/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0070Test.java +++ b/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0070Test.java @@ -1,28 +1,35 @@ package org.apache.maven.integrationtests; -import java.io.*; -import java.util.*; -import junit.framework.*; +import junit.framework.TestCase; +import org.apache.maven.it.Verifier; +import org.apache.maven.it.util.FileUtils; +import org.apache.maven.it.util.ResourceExtractor; -import org.apache.maven.it.*; -import org.apache.maven.it.util.*; +import java.io.File; -public class MavenIT0070Test extends TestCase /*extends AbstractMavenIntegrationTest*/ { +public class MavenIT0070Test + extends TestCase /*extends AbstractMavenIntegrationTest*/ +{ -/** Test a RAR generation. */ -public void testit0070() throws Exception { -String basedir = System.getProperty("maven.test.tmpdir", System.getProperty("java.io.tmpdir")); -File testDir = new File(basedir, getName()); -FileUtils.deleteDirectory(testDir); -System.out.println("Extracting it0070 to " + testDir.getAbsolutePath()); -ResourceExtractor.extractResourcePath(getClass(), "/it0070", testDir); -Verifier verifier = new Verifier(testDir.getAbsolutePath()); -verifier.executeGoal("package"); -verifier.assertFilePresent("target/maven-core-it0070-1.0.rar"); -verifier.assertFilePresent("target/maven-core-it0070-1.0.rar!/META-INF/ra.xml"); -verifier.assertFilePresent("target/maven-core-it0070-1.0.rar!/SomeResource.txt"); -verifier.verifyErrorFreeLog(); -verifier.resetStreams(); -System.out.println("PASS"); -}} + /** + * Test a RAR generation. + */ + public void testit0070() + throws Exception + { + String basedir = System.getProperty( "maven.test.tmpdir", System.getProperty( "java.io.tmpdir" ) ); + File testDir = new File( basedir, getName() ); + FileUtils.deleteDirectory( testDir ); + System.out.println( "Extracting it0070 to " + testDir.getAbsolutePath() ); + ResourceExtractor.extractResourcePath( getClass(), "/it0070", testDir ); + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); + verifier.executeGoal( "package" ); + verifier.assertFilePresent( "target/maven-core-it0070-1.0.rar" ); + verifier.assertFilePresent( "target/maven-core-it0070-1.0.rar!/META-INF/ra.xml" ); + verifier.assertFilePresent( "target/maven-core-it0070-1.0.rar!/SomeResource.txt" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + System.out.println( "PASS" ); + } +}