Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-05-24 18:32:51 +0000
committerMichael Valenta2002-05-24 18:32:51 +0000
commit1ffc93e5d454b21e4e8dce4dc6b89d80265170ab (patch)
tree4e35cbeaea95c2e977aa8bb53a1d85b534032a6c /tests/org.eclipse.team.tests.core
parentfd19755aad93b0cf2601d71e8c6da10e68948464 (diff)
downloadeclipse.platform.team-1ffc93e5d454b21e4e8dce4dc6b89d80265170ab.tar.gz
eclipse.platform.team-1ffc93e5d454b21e4e8dce4dc6b89d80265170ab.tar.xz
eclipse.platform.team-1ffc93e5d454b21e4e8dce4dc6b89d80265170ab.zip
Fixed test cases to work with FTP
- isOutOFData fails because of 1 minute granularity
Diffstat (limited to 'tests/org.eclipse.team.tests.core')
-rw-r--r--tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/core/TeamTest.java7
1 files changed, 7 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
index ac634c418..4b91882e3 100644
--- 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
@@ -23,6 +23,7 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.core.tests.harness.EclipseWorkspaceTest;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.core.sync.IRemoteResource;
+import org.eclipse.team.core.target.IRemoteTargetResource;
import org.eclipse.team.core.target.Site;
import org.eclipse.team.core.target.TargetManager;
import org.eclipse.team.core.target.TargetProvider;
@@ -143,6 +144,12 @@ public class TeamTest extends EclipseWorkspaceTest {
}
}
public TargetProvider createProvider(IProject project) throws TeamException {
+ // Ensure the remote folder exists
+ IRemoteTargetResource remote = getSite().getRemoteResource().getFolder(
+ new Path(properties.getProperty("test_dir")).append(project.getName()).toString());
+ if (! remote.exists(null)) {
+ remote.mkdirs(null);
+ }
TargetManager.map(project, getSite(), new Path(properties.getProperty("test_dir")).append(project.getName()));
TargetProvider target = getProvider(project);
return target;

Back to the top