Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-03-19 18:21:01 -0500
committerJean Michel-Lemieux2002-03-19 18:21:01 -0500
commit6197fb54fbc0fbb16a3965f9d0986e40cf4560a2 (patch)
tree1ac1713fd092a6f9dce778f2c87e54df0decddfd
parente80fa2ef668c2e9d0db6ab34e9fb42804aff0ac7 (diff)
downloadeclipse.platform.team-6197fb54fbc0fbb16a3965f9d0986e40cf4560a2.tar.gz
eclipse.platform.team-6197fb54fbc0fbb16a3965f9d0986e40cf4560a2.tar.xz
eclipse.platform.team-6197fb54fbc0fbb16a3965f9d0986e40cf4560a2.zip
*** empty log message ***
-rw-r--r--tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/TeamTest.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/TeamTest.java b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/TeamTest.java
new file mode 100644
index 000000000..7f64727fe
--- /dev/null
+++ b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/TeamTest.java
@@ -0,0 +1,29 @@
+package org.eclipse.team.tests.core;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.tests.harness.EclipseWorkspaceTest;
+
+public class TeamTest extends EclipseWorkspaceTest {
+ public TeamTest() {
+ super();
+ }
+ public TeamTest(String name) {
+ super(name);
+ }
+
+ protected IProject getNamedTestProject(String name) throws CoreException {
+ IProject target = getWorkspace().getRoot().getProject(name);
+ if (!target.exists()) {
+ target.create(null);
+ target.open(null);
+ }
+ assertExistsInFileSystem(target);
+ return target;
+ }
+
+ protected IProject getUniqueTestProject(String prefix) throws CoreException {
+ // manage and share with the default stream create by this class
+ return getNamedTestProject(prefix + "-" + Long.toString(System.currentTimeMillis()));
+ }
+}

Back to the top