diff --git a/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0032Test.java b/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0032Test.java index 358cdbccac..28327d3d37 100644 --- a/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0032Test.java +++ b/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0032Test.java @@ -1,29 +1,36 @@ 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 MavenIT0032Test extends TestCase /*extends AbstractMavenIntegrationTest*/ { +public class MavenIT0032Test + extends TestCase /*extends AbstractMavenIntegrationTest*/ +{ -/** Tests that a specified Maven version requirement that is lower doesn't cause any problems */ -public void testit0032() 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 it0032 to " + testDir.getAbsolutePath()); -ResourceExtractor.extractResourcePath(getClass(), "/it0032", testDir); -Verifier verifier = new Verifier(testDir.getAbsolutePath()); -verifier.executeGoal("package"); -verifier.assertFilePresent("target/classes/org/apache/maven/it0032/Person.class"); -verifier.assertFilePresent("target/test-classes/org/apache/maven/it0032/PersonTest.class"); -verifier.assertFilePresent("target/maven-core-it0032-1.0.jar"); -verifier.assertFilePresent("target/maven-core-it0032-1.0.jar!/it0032.properties"); -verifier.verifyErrorFreeLog(); -verifier.resetStreams(); -System.out.println("PASS"); -}} + /** + * Tests that a specified Maven version requirement that is lower doesn't cause any problems + */ + public void testit0032() + 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 it0032 to " + testDir.getAbsolutePath() ); + ResourceExtractor.extractResourcePath( getClass(), "/it0032", testDir ); + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); + verifier.executeGoal( "package" ); + verifier.assertFilePresent( "target/classes/org/apache/maven/it0032/Person.class" ); + verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0032/PersonTest.class" ); + verifier.assertFilePresent( "target/maven-core-it0032-1.0.jar" ); + verifier.assertFilePresent( "target/maven-core-it0032-1.0.jar!/it0032.properties" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + System.out.println( "PASS" ); + } +}