Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys2010-03-31 11:00:59 +0000
committerSzymon Brandys2010-03-31 11:00:59 +0000
commit0280502ecedd8221af90741ede23b01e38cb66c8 (patch)
treed04b7f529f6c476b8115d2a543d88b4cae14af97 /tests/org.eclipse.team.tests.cvs.core
parent3cc50e4d1270ae9a77b8b35cc7351469c6e92424 (diff)
downloadeclipse.platform.team-0280502ecedd8221af90741ede23b01e38cb66c8.tar.gz
eclipse.platform.team-0280502ecedd8221af90741ede23b01e38cb66c8.tar.xz
eclipse.platform.team-0280502ecedd8221af90741ede23b01e38cb66c8.zip
Update in #testBug302163WithoutModel and #testBug302163WithModel
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core')
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSWorkspaceSubscriberTest.java52
1 files changed, 28 insertions, 24 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSWorkspaceSubscriberTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSWorkspaceSubscriberTest.java
index d8b2b1499..f7e74907b 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSWorkspaceSubscriberTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSWorkspaceSubscriberTest.java
@@ -311,20 +311,22 @@ public class CVSWorkspaceSubscriberTest extends CVSSyncSubscriberTest {
copyModelProject.getFile("file.mod").setContents(new ByteArrayInputStream(("\nf1.moe\nf2.moe").getBytes()), false, true, null);
commitProject(copyModelProject);
- RepositoryProviderOperation.consultModelsWhenBuildingScope = true;
- setSyncSource(new SyncInfoSource());
- refresh(getSubscriber(), modelProject);
-
- // Update the "file.mod" file
try {
- update(modelProject, new String[] { "file.mod" });
- } catch (CVSException e) {
- fail("Update without models failed", e);
+ RepositoryProviderOperation.consultModelsWhenBuildingScope = true;
+ setSyncSource(new SyncInfoSource());
+ refresh(getSubscriber(), modelProject);
+
+ // Update the "file.mod" file
+ try {
+ update(modelProject, new String[] { "file.mod" });
+ } catch (CVSException e) {
+ fail("Update without models failed", e);
+ }
+ } finally {
+ // Reset settings
+ RepositoryProviderOperation.consultModelsWhenBuildingScope = false;
+ setSyncSource(new ModelParticipantSyncInfoSource());
}
-
- // Reset settings
- RepositoryProviderOperation.consultModelsWhenBuildingScope = false;
- setSyncSource(new ModelParticipantSyncInfoSource());
}
public void testBug302163WithModel() throws CoreException {
@@ -345,20 +347,22 @@ public class CVSWorkspaceSubscriberTest extends CVSSyncSubscriberTest {
copyModelProject.getFile("file.mod").setContents(new ByteArrayInputStream(("\nf1.moe\nf2.moe").getBytes()), false, true, null);
commitProject(copyModelProject);
- RepositoryProviderOperation.consultModelsWhenBuildingScope = true;
- setSyncSource(new SyncInfoSource());
- refresh(getSubscriber(), modelProject);
-
- // Update the "file.mod" file
try {
- update(modelProject, new String[] { "file.mod" });
- } catch (CVSException e) {
- fail("Update without models failed", e);
+ RepositoryProviderOperation.consultModelsWhenBuildingScope = true;
+ setSyncSource(new SyncInfoSource());
+ refresh(getSubscriber(), modelProject);
+
+ // Update the "file.mod" file
+ try {
+ update(modelProject, new String[] { "file.mod" });
+ } catch (CVSException e) {
+ fail("Update without models failed", e);
+ }
+ } finally {
+ // Reset settings
+ RepositoryProviderOperation.consultModelsWhenBuildingScope = false;
+ setSyncSource(new ModelParticipantSyncInfoSource());
}
-
- // Reset settings
- RepositoryProviderOperation.consultModelsWhenBuildingScope = false;
- setSyncSource(new ModelParticipantSyncInfoSource());
}
/*

Back to the top