mirror of https://github.com/apache/maven.git
o reformat and optimize imports
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@466533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b0803b73ed
commit
1a00ad92b0
|
@ -1,16 +1,22 @@
|
||||||
package org.apache.maven.integrationtests;
|
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 java.io.File;
|
||||||
import org.apache.maven.it.util.*;
|
|
||||||
|
|
||||||
public class MavenIT0084Test extends TestCase /*extends AbstractMavenIntegrationTest*/ {
|
public class MavenIT0084Test
|
||||||
|
extends TestCase /*extends AbstractMavenIntegrationTest*/
|
||||||
|
{
|
||||||
|
|
||||||
/** Verify that the collector selecting a particular version gets the correct subtree */
|
/**
|
||||||
public void testit0084() throws Exception {
|
* Verify that the collector selecting a particular version gets the correct subtree
|
||||||
|
*/
|
||||||
|
public void testit0084()
|
||||||
|
throws Exception
|
||||||
|
{
|
||||||
String basedir = System.getProperty( "maven.test.tmpdir", System.getProperty( "java.io.tmpdir" ) );
|
String basedir = System.getProperty( "maven.test.tmpdir", System.getProperty( "java.io.tmpdir" ) );
|
||||||
File testDir = new File( basedir, getName() );
|
File testDir = new File( basedir, getName() );
|
||||||
FileUtils.deleteDirectory( testDir );
|
FileUtils.deleteDirectory( testDir );
|
||||||
|
@ -21,17 +27,26 @@ verifier.executeGoal("package");
|
||||||
verifier.assertFilePresent( "test-component-a/target/test-component-a-0.1.jar" );
|
verifier.assertFilePresent( "test-component-a/target/test-component-a-0.1.jar" );
|
||||||
verifier.assertFilePresent( "test-component-b/target/test-component-b-0.1.jar" );
|
verifier.assertFilePresent( "test-component-b/target/test-component-b-0.1.jar" );
|
||||||
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1.war" );
|
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1.war" );
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-a-0.1.jar");
|
verifier.assertFilePresent(
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-b-0.1.jar");
|
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-a-0.1.jar" );
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/maven-core-it-support-1.4.jar");
|
verifier.assertFilePresent(
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/commons-io-1.0.jar");
|
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/test-component-b-0.1.jar" );
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-a-0.1.jar");
|
verifier.assertFilePresent(
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-b-0.1.jar");
|
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/maven-core-it-support-1.4.jar" );
|
||||||
verifier.assertFilePresent("test-component-c/target/test-component-c-0.1/WEB-INF/lib/maven-core-it-support-1.4.jar");
|
verifier.assertFilePresent(
|
||||||
|
"test-component-c/target/test-component-c-0.1.war!/WEB-INF/lib/commons-io-1.0.jar" );
|
||||||
|
verifier.assertFilePresent(
|
||||||
|
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-a-0.1.jar" );
|
||||||
|
verifier.assertFilePresent(
|
||||||
|
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/test-component-b-0.1.jar" );
|
||||||
|
verifier.assertFilePresent(
|
||||||
|
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/maven-core-it-support-1.4.jar" );
|
||||||
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-io-1.0.jar" );
|
verifier.assertFilePresent( "test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-io-1.0.jar" );
|
||||||
verifier.assertFileNotPresent("test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-lang-1.0.jar");
|
verifier.assertFileNotPresent(
|
||||||
|
"test-component-c/target/test-component-c-0.1/WEB-INF/lib/commons-lang-1.0.jar" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
System.out.println( "PASS" );
|
System.out.println( "PASS" );
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue