maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r632702 - in /maven/surefire/trunk/surefire-integration-tests/src/test: java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java resources/surefire-162-charsetProvider/pom.xml
Date Sun, 02 Mar 2008 02:45:42 GMT
Author: brett
Date: Sat Mar  1 18:45:42 2008
New Revision: 632702

URL: http://svn.apache.org/viewvc?rev=632702&view=rev
Log:
make the testwork if you are overriding repositories

Modified:
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/pom.xml

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java?rev=632702&r1=632701&r2=632702&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java
(original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/Surefire162CharsetProviderTest.java
Sat Mar  1 18:45:42 2008
@@ -4,6 +4,7 @@
 import junit.framework.TestCase;
 import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.ResourceExtractor;
+import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
 
@@ -22,6 +23,10 @@
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/surefire-162-charsetProvider"
);
 
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        File jarFile = new File( verifier.getArtifactPath( "jcharset", "jcharset", "1.2.1",
"jar" ) );
+        jarFile.getParentFile().mkdirs();
+        FileUtils.copyFile( new File( testDir, "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.jar"
), jarFile );
+        FileUtils.copyFile( new File( testDir, "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.pom"
), new File( verifier.getArtifactPath( "jcharset", "jcharset", "1.2.1", "pom" ) ) );
         verifier.executeGoal( "test" );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/pom.xml?rev=632702&r1=632701&r2=632702&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/pom.xml
(original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-162-charsetProvider/pom.xml
Sat Mar  1 18:45:42 2008
@@ -37,10 +37,4 @@
 			<scope>runtime</scope>
 		</dependency>
 	</dependencies>
-	<repositories>
-		<repository>
-			<id>local</id>
-			<url>file://localhost/${basedir}/repo</url>
-		</repository>
-	</repositories>
 </project>



Mime
View raw message