Skip to main content
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-02-26 22:08:03 +0000
committerJean Michel-Lemieux2002-02-26 22:08:03 +0000
commit2cc023acfdd6260dc9ec8f3de13722396ecab89e (patch)
treee70d0dafc62ad9113d7b65c8dbda2bb718150447 /tests
parentd877db3731e29bd28b99f16f11d4527ae66a5d11 (diff)
downloadeclipse.platform.team-2cc023acfdd6260dc9ec8f3de13722396ecab89e.tar.gz
eclipse.platform.team-2cc023acfdd6260dc9ec8f3de13722396ecab89e.tar.xz
eclipse.platform.team-2cc023acfdd6260dc9ec8f3de13722396ecab89e.zip
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java
index dfbeb058b..cb6de755b 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/CVSTestSetup.java
@@ -13,7 +13,9 @@ import junit.extensions.TestSetup;
import junit.framework.Test;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.team.ccvs.core.CVSProviderPlugin;
+import org.eclipse.team.ccvs.core.ICVSRepositoryLocation;
import org.eclipse.team.internal.ccvs.core.CVSException;
+import org.eclipse.team.internal.ccvs.core.CVSProvider;
import org.eclipse.team.internal.ccvs.core.connection.CVSRepositoryLocation;
public class CVSTestSetup extends TestSetup {
@@ -95,8 +97,10 @@ public class CVSTestSetup extends TestSetup {
// Give some info about which repository the tests are running against
System.out.println("Connecting to: " + location);
- // Validate that we can connect
- CVSRepositoryLocation repository = CVSRepositoryLocation.fromString(location);
+ // Validate that we can connect, also creates and caches the repository location. This
+ // is important for the UI tests.
+ CVSRepositoryLocation repository = (CVSRepositoryLocation)CVSProvider.getInstance().getRepository(location);
+ //CVSRepositoryLocation repository = CVSRepositoryLocation.fromString(location);
try {
repository.validateConnection(new NullProgressMonitor());
} catch (CVSException e) {

Back to the top