You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/05/26 15:09:21 UTC
cvs commit: maven-new/core/src/test/org/apache/maven/artifact/satisfy DefaultDependencySatisfierTest.java
jvanzyl 2003/05/26 06:09:21
Modified: core/src/test/org/apache/maven/artifact/satisfy
DefaultDependencySatisfierTest.java
Log:
o Manually setting the test local repo location.
Revision Changes Path
1.2 +10 -3 maven-new/core/src/test/org/apache/maven/artifact/satisfy/DefaultDependencySatisfierTest.java
Index: DefaultDependencySatisfierTest.java
===================================================================
RCS file: /home/cvs/maven-new/core/src/test/org/apache/maven/artifact/satisfy/DefaultDependencySatisfierTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DefaultDependencySatisfierTest.java 25 May 2003 19:10:23 -0000 1.1
+++ DefaultDependencySatisfierTest.java 26 May 2003 13:09:20 -0000 1.2
@@ -27,7 +27,7 @@
/**
* Constructor for DefaultDependencySatisfierTest.
- * @param arg0
+ * @param testName
*/
public DefaultDependencySatisfierTest(String testName)
{
@@ -35,7 +35,7 @@
}
/**
- * @see TestCase#setUp()
+ * @see junit.framework.TestCase#setUp()
*/
public void setUp() throws Exception
{
@@ -45,6 +45,13 @@
builder = (ProjectBuilder) lookup(ProjectBuilder.ROLE);
artifactFactory = (ArtifactFactory) lookup(ArtifactFactory.ROLE);
+
+ // We are setting the value of the test local repository because if a value is set
+ // it will be used. If you have maven.repo.local set in your ~/build.properties then
+ // that value will be used and it interferes with the tests. For the tests we
+ // should set this up to always use our test repo.
+
+ artifactFactory.setMavenRepoLocal( getTestFile( "src/test-input/maven-repo-local" ) );
MockArtifactDownloader.clear();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org