From ed6e4a6571277f295dc4da6f3c7ce3eadd631928 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 21 Oct 2006 20:30:01 +0000 Subject: [PATCH] o reformat and optimize imports git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@466480 13f79535-47bb-0310-9956-ffa450edef68 --- .../integrationtests/MavenIT0032Test.java | 53 +++++++++++-------- 1 file changed, 30 insertions(+), 23 deletions(-) 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" ); + } +}