Author: jvanzyl
Date: Sat Oct 21 13:28:58 2006
New Revision: 466459
URL: http://svn.apache.org/viewvc?view=rev&rev=466459
Log:
o reformat and optimize imports
Modified:
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java
Modified:
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java
URL:
http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java?view=diff&rev=466459&r1=466458&r2=466459
==============================================================================
---
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java
(original)
+++
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0010Test.java
Sat Oct 21 13:28:58 2006
@@ -1,33 +1,39 @@
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 MavenIT0010Test extends TestCase /*extends
AbstractMavenIntegrationTest*/ {
+public class MavenIT0010Test
+ extends TestCase /*extends AbstractMavenIntegrationTest*/
+{
-/** Since the artifact resolution does not use the project builder, we must
- ensure that the full hierarchy of all dependencies is resolved. This
- includes the dependencies of the parent-pom's of dependencies. This
test
- will check this, by depending on classworlds, which is a dependency of
- maven-component, which is the parent of maven-plugin, which is an
- explicit dependency of this test.
- # TODO: must correct the assumptions of this test
- */
-public void testit0010() 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 it0010 to " + testDir.getAbsolutePath());
-ResourceExtractor.extractResourcePath(getClass(), "/it0010", testDir);
-Verifier verifier = new Verifier(testDir.getAbsolutePath());
-verifier.executeGoal("compile");
-verifier.assertFilePresent("target/classes/org/apache/maven/it0010/PersonFinder.class");
-verifier.verifyErrorFreeLog();
-verifier.resetStreams();
-System.out.println("PASS");
-}}
+ /**
+ * Since the artifact resolution does not use the project builder, we must
+ * ensure that the full hierarchy of all dependencies is resolved. This
+ * includes the dependencies of the parent-pom's of dependencies. This test
+ * will check this, by depending on classworlds, which is a dependency of
+ * maven-component, which is the parent of maven-plugin, which is an
+ * explicit dependency of this test.
+ * # TODO: must correct the assumptions of this test
+ */
+ public void testit0010()
+ 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 it0010 to " +
testDir.getAbsolutePath() );
+ ResourceExtractor.extractResourcePath( getClass(), "/it0010", testDir
);
+ Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+ verifier.executeGoal( "compile" );
+ verifier.assertFilePresent(
"target/classes/org/apache/maven/it0010/PersonFinder.class" );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+ System.out.println( "PASS" );
+ }
+}