Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-02-03 21:32:58 +0000
committerMichael Valenta2003-02-03 21:32:58 +0000
commitfbd5263a666c822e6870352019157a687ed44393 (patch)
tree36e5e0869606a2135f8387fa2259253e552bb631 /tests/org.eclipse.team.tests.core
parente6104e4231ec6181ae64b44a37a9a1cd2517315e (diff)
downloadeclipse.platform.team-fbd5263a666c822e6870352019157a687ed44393.tar.gz
eclipse.platform.team-fbd5263a666c822e6870352019157a687ed44393.tar.xz
eclipse.platform.team-fbd5263a666c822e6870352019157a687ed44393.zip
30683: Need API to know if project is shared
Diffstat (limited to 'tests/org.eclipse.team.tests.core')
-rw-r--r--tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/RepositoryProviderTests.java8
1 files changed, 8 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 3b22db842..d26e5cc34 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
@@ -367,4 +367,12 @@ public class RepositoryProviderTests extends TeamTest {
fail("Link should be disallowed");
}
+ public void testIsShared() throws CoreException, TeamException {
+ IProject project1 = getUniqueTestProject("testGetProviderById_1");
+ RepositoryProvider.map(project1, RepositoryProviderBic.NATURE_ID);
+ assertTrue(RepositoryProvider.isShared(project1));
+ RepositoryProvider.unmap(project1);
+ assertTrue(!RepositoryProvider.isShared(project1));
+ }
+
} \ No newline at end of file

Back to the top