Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2010-08-12 02:15:04 +0000
committerDarin Wright2010-08-12 02:15:04 +0000
commit31cacb31c85e886871bec0ab521c5305ba612d4f (patch)
tree976957dd1c8e7f1c099a5c431b5e5950894d52ff /org.eclipse.debug.tests
parenta27fb849b4a0ac98d8bab357a403a2ceafc96400 (diff)
downloadeclipse.platform.debug-31cacb31c85e886871bec0ab521c5305ba612d4f.tar.gz
eclipse.platform.debug-31cacb31c85e886871bec0ab521c5305ba612d4f.tar.xz
eclipse.platform.debug-31cacb31c85e886871bec0ab521c5305ba612d4f.zip
new test for move & rename configuration
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java24
2 files changed, 25 insertions, 1 deletions
diff --git a/org.eclipse.debug.tests/META-INF/MANIFEST.MF b/org.eclipse.debug.tests/META-INF/MANIFEST.MF
index 052406d6e..aa92e7c77 100644
--- a/org.eclipse.debug.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.debug.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.debug.tests;singleton:=true
-Bundle-Version: 3.6.0.qualifier
+Bundle-Version: 3.7.0.qualifier
Bundle-Activator: org.eclipse.debug.tests.TestsPlugin
Require-Bundle: org.eclipse.ui;bundle-version="[3.6.0,4.0.0)",
org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
index 6219f340b..a72614b4d 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java
@@ -1352,6 +1352,30 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau
}
assertTrue("Should be an illegal argument - illegal character used in name", false);
}
+
+ /**
+ * Test that moving and renaming a shared configuration at the same time works.
+ *
+ * @throws CoreException
+ */
+ public void testRenameAndMoveShared() throws CoreException {
+ IProject project = getProject();
+ IFolder f1 = project.getFolder("f1");
+ IFolder f2 = project.getFolder("f2");
+ f1.create(false, true, null);
+ f2.create(false, true, null);
+ ILaunchConfigurationWorkingCopy wc = newConfiguration(f1, "start-here");
+ ILaunchConfiguration orig = wc.doSave();
+ wc = orig.getWorkingCopy();
+
+ wc.setContainer(f2);
+ wc.rename("end-here");
+ ILaunchConfiguration next = wc.doSave();
+
+ assertFalse("Original should not exist", orig.exists());
+ assertTrue("Renamed and moved config should exist", next.exists());
+
+ }
}

Back to the top