diff options
author | Darin Wright | 2010-08-12 02:15:04 +0000 |
---|---|---|
committer | Darin Wright | 2010-08-12 02:15:04 +0000 |
commit | 31cacb31c85e886871bec0ab521c5305ba612d4f (patch) | |
tree | 976957dd1c8e7f1c099a5c431b5e5950894d52ff /org.eclipse.debug.tests/src | |
parent | a27fb849b4a0ac98d8bab357a403a2ceafc96400 (diff) | |
download | eclipse.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/src')
-rw-r--r-- | org.eclipse.debug.tests/src/org/eclipe/debug/tests/launching/LaunchConfigurationTests.java | 24 |
1 files changed, 24 insertions, 0 deletions
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()); + + } } |