Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-03-20 12:26:08 -0500
committerJean Michel-Lemieux2002-03-20 12:26:08 -0500
commitab1d7709da7b03ac91a0f7fe63fc89dd3f35989b (patch)
treedad6f4b0f576ad24daf62bf55b4049a8ae48bc13
parenteb5b4d85760ae94c21d7acd49ad4eb2aa4cdbfa7 (diff)
downloadeclipse.platform.team-ab1d7709da7b03ac91a0f7fe63fc89dd3f35989b.tar.gz
eclipse.platform.team-ab1d7709da7b03ac91a0f7fe63fc89dd3f35989b.tar.xz
eclipse.platform.team-ab1d7709da7b03ac91a0f7fe63fc89dd3f35989b.zip
*** empty log message ***
-rw-r--r--tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java
index df5693d23..a44ae5f5e 100644
--- a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java
+++ b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java
@@ -72,6 +72,11 @@ public class RepositoryProviderTests extends TeamTest {
assertTrue(provider1 != null && provider1.getID().equals(RepositoryProviderBic.NATURE_ID));
}
+ // adding another non-team provider should be ok but should not be returned as a provider
+ RepositoryProvider.addNatureToProject(project2, RepositoryProviderOtherSport.NATURE_ID, null);
+ provider2 = RepositoryProvider.getProvider(project2);
+ assertTrue(provider2 != null && provider2.getID().equals(RepositoryProviderNaish.NATURE_ID));
+
// closed or non-existant projects cannot be associated with a provider
IProject closedProject = getUniqueTestProject("testGetProviderGenericClosed");
IProject nonExistantProject = ResourcesPlugin.getWorkspace().getRoot().getProject("nonExistant");
@@ -292,6 +297,7 @@ public class RepositoryProviderTests extends TeamTest {
}
});
+ // test that moving files/folders between two projects with providers calls the destination
IResource[] resources = buildResources(projectA, new String[] {"moveFile.txt", "moveFolder/"});
ensureExistsInWorkspace(resources, true);
resources[0].move(projectB.getFullPath().append("moveFile_new.txt"), false, null);

Back to the top