Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-04-03 17:10:35 -0500
committerMichael Valenta2002-04-03 17:10:35 -0500
commit2e8fded278693cd0b028818873ee3945d9d6e91c (patch)
treec485d32e94a62d741c5b1f35be487499714bd526
parent3a94c1d0fadbc3e253480858418cb31c41a1f142 (diff)
downloadeclipse.platform.team-2e8fded278693cd0b028818873ee3945d9d6e91c.tar.gz
eclipse.platform.team-2e8fded278693cd0b028818873ee3945d9d6e91c.tar.xz
eclipse.platform.team-2e8fded278693cd0b028818873ee3945d9d6e91c.zip
*** empty log message ***
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/RemoteResourceTest.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/RemoteResourceTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/RemoteResourceTest.java
index f8796cbc4..f22eb67b9 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/RemoteResourceTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/provider/RemoteResourceTest.java
@@ -166,11 +166,11 @@ public class RemoteResourceTest extends EclipseTest {
public void testGetRemoteResource() throws CoreException, TeamException, IOException {
IProject project = createProject("testGetRemoteResource", new String[] { "file1.txt", "folder1/", "folder1/a.txt", "folder2/", "folder2/a.txt", "folder2/folder3/", "folder2/folder3/b.txt", "folder2/folder3/c.txt"});
ICVSRemoteResource file = CVSWorkspaceRoot.getRemoteResourceFor(project.getFile("folder1/a.txt"));
- assertTrue("File should exist remotely", file.exists());
+ assertTrue("File should exist remotely", file.exists(DEFAULT_MONITOR));
assertEquals(Path.EMPTY, (ICVSResource)file, (ICVSResource)CVSWorkspaceRoot.getRemoteResourceFor(project.getFile("folder1/a.txt")), false, false);
ICVSRemoteResource folder = CVSWorkspaceRoot.getRemoteResourceFor(project.getFolder("folder2/folder3/"));
getMembers((ICVSRemoteFolder)folder, true);
- assertTrue("Folder should exist remotely", folder.exists());
+ assertTrue("Folder should exist remotely", folder.exists(DEFAULT_MONITOR));
// XXX this didn't work right. I'll need to check into it later
// assertEquals("Remote folder should match local folder", (ICVSResource)folder, (ICVSResource)Client.getManagedFolder(project.getFolder("folder2/folder3/").getLocation().toFile()));
}
@@ -279,5 +279,13 @@ public class RemoteResourceTest extends EclipseTest {
ICVSRemoteFolder v2 = (ICVSRemoteFolder)CVSWorkspaceRoot.getRemoteTree(project, tag2, DEFAULT_MONITOR);
assertEquals(Path.EMPTY, remote, v2, false);
}
+
+ public void testExists() throws TeamException, CoreException, IOException {
+ IProject project = createProject("testExists", new String[] { "file1.txt", "folder1/", "folder1/a.txt", "folder2/", "folder2/a.txt", "folder2/folder3/", "folder2/folder3/b.txt", "folder2/folder3/c.txt"});
+ ICVSRemoteResource resource = CVSWorkspaceRoot.getRemoteResourceFor(project.getFile("file1.txt"));
+ assertTrue(resource.exists(DEFAULT_MONITOR));
+ resource = (ICVSRemoteFolder)CVSWorkspaceRoot.getRemoteResourceFor(project.getFolder("folder2/folder3/"));
+ assertTrue(resource.exists(DEFAULT_MONITOR));
+ }
}

Back to the top