Author: jvanzyl
Date: Sat Oct 21 13:29:31 2006
New Revision: 466470
URL: http://svn.apache.org/viewvc?view=rev&rev=466470
Log:
o reformat and optimize imports
Modified:
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java
Modified:
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java
URL:
http://svn.apache.org/viewvc/maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java?view=diff&rev=466470&r1=466469&r2=466470
==============================================================================
---
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java
(original)
+++
maven/components/trunk/maven-core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0022Test.java
Sat Oct 21 13:29:31 2006
@@ -1,30 +1,38 @@
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;
+import java.util.Properties;
-public class MavenIT0022Test extends TestCase /*extends
AbstractMavenIntegrationTest*/ {
+public class MavenIT0022Test
+ extends TestCase /*extends AbstractMavenIntegrationTest*/
+{
-/** Test profile inclusion from profiles.xml (this one is activated by system
- property). */
-public void testit0022() 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 it0022 to " + testDir.getAbsolutePath());
-ResourceExtractor.extractResourcePath(getClass(), "/it0022", testDir);
-Verifier verifier = new Verifier(testDir.getAbsolutePath());
-Properties systemProperties = new Properties();
-systemProperties.put("includeProfile", "true");
-verifier.setSystemProperties(systemProperties);
-verifier.executeGoal("core-it:touch");
-verifier.assertFilePresent("target/test.txt");
-verifier.verifyErrorFreeLog();
-verifier.resetStreams();
-System.out.println("PASS");
-}}
+ /**
+ * Test profile inclusion from profiles.xml (this one is activated by
system
+ * property).
+ */
+ public void testit0022()
+ 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 it0022 to " +
testDir.getAbsolutePath() );
+ ResourceExtractor.extractResourcePath( getClass(), "/it0022", testDir
);
+ Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+ Properties systemProperties = new Properties();
+ systemProperties.put( "includeProfile", "true" );
+ verifier.setSystemProperties( systemProperties );
+ verifier.executeGoal( "core-it:touch" );
+ verifier.assertFilePresent( "target/test.txt" );
+ verifier.verifyErrorFreeLog();
+ verifier.resetStreams();
+ System.out.println( "PASS" );
+ }
+}