diff options
Diffstat (limited to 'org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java')
-rw-r--r-- | org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java | 185 |
1 files changed, 124 insertions, 61 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java index 837e0ef94..5447884d9 100644 --- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java +++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchConfigurationTests.java @@ -14,6 +14,13 @@ *******************************************************************************/ package org.eclipse.debug.tests.launching; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNotSame; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + import java.io.File; import java.io.FileFilter; import java.io.IOException; @@ -66,6 +73,7 @@ import org.eclipse.debug.ui.DebugUITools; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.PlatformUI; +import org.junit.Test; import org.osgi.framework.Bundle; /** @@ -207,14 +215,6 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Constructor - * @param name - */ - public LaunchConfigurationTests(String name) { - super(name); - } - - /** * Returns a scratch project for launch configurations * * @return @@ -301,11 +301,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a local working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. + * Creates a local working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. * * @throws CoreException */ + @Test public void testCreateLocalConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config1"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -333,6 +334,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testLocalName() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "localName"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -349,6 +351,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Creates a shared working copy configuration and tests is name. */ + @Test public void testSharedName() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "sharedName"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -364,8 +367,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Ensures that a launch configuration returns a complete attribute map + * * @throws CoreException */ + @Test public void testGetAttributes() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config1"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -387,8 +392,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Ensures that set attributes works + * * @throws CoreException */ + @Test public void testSetAttributes() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config1"); //$NON-NLS-1$ Map<String, Object> map = new HashMap<>(); @@ -413,8 +420,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Ensures that set attributes to <code>null</code> works + * * @throws CoreException */ + @Test public void testSetNullAttributes() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config1"); //$NON-NLS-1$ wc.setAttributes(null); @@ -431,11 +440,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a local working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. - * Copy the configuration and ensure the original still exists. + * Creates a local working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Copy the + * configuration and ensure the original still exists. + * * @throws CoreException */ + @Test public void testLocalCopy() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "configToCopy"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -473,10 +484,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Create a config and save it twice, ensuring it only - * ends up in the index once. + * Create a config and save it twice, ensuring it only ends up in the index + * once. + * * @throws CoreException */ + @Test public void testDoubleSave() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "configDoubleSave"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -510,11 +523,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a local working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. Deletes - * the configuration and ensures it no longer exists. + * Creates a local working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Deletes the + * configuration and ensures it no longer exists. + * * @throws CoreException */ + @Test public void testDeleteLocalConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config2delete"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -537,12 +552,14 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a local working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. Renames - * the configuration and ensures it's old config no longer exists, - * and that attributes are retrievable from the new (renamed) config. + * Creates a local working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Renames the + * configuration and ensures it's old config no longer exists, and that + * attributes are retrievable from the new (renamed) config. + * * @throws CoreException */ + @Test public void testRenameLocalConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config2rename"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -584,8 +601,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Moves a local configuration to a shared location + * * @throws CoreException */ + @Test public void testMoveLocalToSharedConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config2share"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -627,8 +646,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Moves a local configuration to a shared location + * * @throws CoreException */ + @Test public void testMoveSharedToLocalConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "config2local"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -669,10 +690,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a shared working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. + * Creates a shared working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. + * * @throws CoreException */ + @Test public void testCreateSharedConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "config2"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -694,11 +717,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a shared working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. - * Copies the configuration and ensures the original still exists. + * Creates a shared working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Copies the + * configuration and ensures the original still exists. + * * @throws CoreException */ + @Test public void testSharedCopy() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "config2Copy"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -735,11 +760,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** - * Creates a shared working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. Deletes - * the configuration and ensures it no longer exists. + * Creates a shared working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Deletes the + * configuration and ensures it no longer exists. + * * @throws CoreException */ + @Test public void testDeleteSharedConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "shared2delete"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -761,12 +788,14 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a shared working copy configuration, sets some attributes, - * and saves the working copy, and retrieves the attributes. Renames - * the configuration and ensures it's old config no longer exists, - * and that attributes are retrievable from the new (renamed) config. + * Creates a shared working copy configuration, sets some attributes, and + * saves the working copy, and retrieves the attributes. Renames the + * configuration and ensures it's old config no longer exists, and that + * attributes are retrievable from the new (renamed) config. + * * @throws CoreException */ + @Test public void testRenameSharedConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "shared2rename"); //$NON-NLS-1$ ILaunchConfiguration handle = wc.doSave(); @@ -813,10 +842,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a few configs, closes the project and re-opens the - * project to ensure the config index is persisted properly + * Creates a few configs, closes the project and re-opens the project to + * ensure the config index is persisted properly + * * @throws CoreException */ + @Test public void testPersistIndex() throws CoreException { // close all editors before closing project: @see bug 204023 closeAllEditors(); @@ -896,11 +927,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Ensures that a removal notification is sent for a shared config in a project - * that is deleted. + * Ensures that a removal notification is sent for a shared config in a + * project that is deleted. * * @throws Exception */ + @Test public void testDeleteProjectWithSharedConfig() throws Exception { IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("DeleteSharedConfig"); //$NON-NLS-1$ try { @@ -936,6 +968,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testNestedWorkingCopyLocalConfiguration() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "config123"); //$NON-NLS-1$ IPath location = wc.getLocation(); @@ -987,11 +1020,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a configuration in an EFS linked folder. Deletes configuration directly. + * Creates a configuration in an EFS linked folder. Deletes configuration + * directly. * * @throws CoreException * @throws URISyntaxException */ + @Test public void testCreateDeleteEFS() throws CoreException, URISyntaxException { IFileSystem fileSystem = EFS.getFileSystem("debug"); //$NON-NLS-1$ assertNotNull("Missing debug EFS", fileSystem); //$NON-NLS-1$ @@ -1020,12 +1055,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Creates a configuration in an EFS linked folder. Deletes the folder to ensure the - * configuration is also deleted. + * Creates a configuration in an EFS linked folder. Deletes the folder to + * ensure the configuration is also deleted. * * @throws CoreException * @throws URISyntaxException */ + @Test public void testCreateDeleteEFSLink() throws CoreException, URISyntaxException { IFileSystem fileSystem = EFS.getFileSystem("debug"); //$NON-NLS-1$ assertNotNull("Missing debug EFS", fileSystem); //$NON-NLS-1$ @@ -1056,6 +1092,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws Exception */ + @Test public void testEFSProjectRename() throws Exception { // create test project IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject("RenameEFS"); //$NON-NLS-1$ @@ -1119,6 +1156,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws Exception */ + @Test public void testImport() throws Exception { // create a shared configuration "Import4" in the workspace to be overwritten on import ILaunchConfigurationWorkingCopy wc = newConfiguration(getProject(), "Import4"); //$NON-NLS-1$ @@ -1134,14 +1172,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau getLaunchManager().addLaunchConfigurationListener(listener); // import manager.importConfigurations(dir.listFiles( - new FileFilter() { - @Override - public boolean accept(File file) { - return file.isFile() && - file.getName().endsWith( - ILaunchConfiguration.LAUNCH_CONFIGURATION_FILE_EXTENSION); - } - }), + (FileFilter) file -> file.isFile() && file.getName().endsWith(ILaunchConfiguration.LAUNCH_CONFIGURATION_FILE_EXTENSION)), null); // should be one removed @@ -1179,6 +1210,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testWorkingCopyGetLocation() throws CoreException { ILaunchConfigurationWorkingCopy workingCopy = newConfiguration(null, "test-get-location"); //$NON-NLS-1$ IPath location = workingCopy.getLocation(); @@ -1188,6 +1220,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Tests that the framework adds launch time stamps to launch objects. */ + @Test public void testLaunchTimeStamp() throws CoreException { ILaunchConfigurationWorkingCopy workingCopy = newConfiguration(null, "test-time-stamp"); //$NON-NLS-1$ ILaunch launch = workingCopy.launch(ILaunchManager.DEBUG_MODE, null); @@ -1207,6 +1240,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * Tests that the framework adds terminate time stamps to launch and process * objects. */ + @Test public void testTerminateTimeStamp() throws Exception { ILaunchConfigurationWorkingCopy workingCopy = newConfiguration(null, "test-time-stamp"); //$NON-NLS-1$ ILaunch launch = workingCopy.launch(ILaunchManager.DEBUG_MODE, null); @@ -1254,10 +1288,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Tests that attributes in a nested map are persisted in alphabetical order. + * Tests that attributes in a nested map are persisted in alphabetical + * order. * * @throws CoreException */ + @Test public void testMapAttributePersistence() throws CoreException, IOException { ILaunchConfigurationWorkingCopy c1 = newEmptyConfiguration(getProject(), "testMapAttributes1"); //$NON-NLS-1$ HashMap<String, String> map = new HashMap<>(); @@ -1335,10 +1371,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Tests that attributes in a nested set are persisted in alphabetical order. + * Tests that attributes in a nested set are persisted in alphabetical + * order. * * @throws CoreException */ + @Test public void testSetAttributePersistence() throws CoreException, IOException { ILaunchConfigurationWorkingCopy c1 = newEmptyConfiguration(getProject(), "testSetAttributes1"); //$NON-NLS-1$ Set<String> set = new HashSet<>(); @@ -1416,11 +1454,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Ensures that client does not attempt to nest configurations in a sub directory when - * using local metadata location. See bug 275741. + * Ensures that client does not attempt to nest configurations in a sub + * directory when using local metadata location. See bug 275741. * * @throws CoreException */ + @Test public void testIllegalFileSepCharName() { try { newConfiguration(null, new Path("some").append("nested").append("config").toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ @@ -1432,12 +1471,13 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Ensures that client can nest configurations in a sub directory when - * using a workspace location. See bug 275741. For behavior compatibility - * a client should be able to use a slash in the configuration name. + * Ensures that client can nest configurations in a sub directory when using + * a workspace location. See bug 275741. For behavior compatibility a client + * should be able to use a slash in the configuration name. * * @throws CoreException */ + @Test public void testLegalFileSepCharName() { try { newConfiguration(getProject(), new Path("some").append("nested").append("config").toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ @@ -1451,6 +1491,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testIllegalCharName() { try { newConfiguration(getProject(), "<config>"); //$NON-NLS-1$ @@ -1462,10 +1503,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Test that moving and renaming a shared configuration at the same time works. + * Test that moving and renaming a shared configuration at the same time + * works. * * @throws CoreException */ + @Test public void testRenameAndMoveShared() throws CoreException { IProject project = getProject(); IFolder f1 = project.getFolder("f1"); //$NON-NLS-1$ @@ -1486,11 +1529,15 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Test support for a URL in the 'icon' part of the launchConfigurationTypeImages extension point + * Test support for a URL in the 'icon' part of the + * launchConfigurationTypeImages extension point + * + * Bug 381175 - [patch] launchConfigurationTypeImage to support platform: + * style icons * - * Bug 381175 - [patch] launchConfigurationTypeImage to support platform: style icons * @throws Exception */ + @Test public void testGetTypeImageFromURI() throws Exception { ImageDescriptor descriptor = DebugUITools.getImageDescriptor("org.eclipse.debug.tests.launch.type1"); //$NON-NLS-1$ assertNotNull("The image descriptior type.image.1 must exist", descriptor); //$NON-NLS-1$ @@ -1499,8 +1546,10 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau /** * Test support for a declared launch configuration type image + * * @throws Exception */ + @Test public void testGetTyeImage() throws Exception { ImageDescriptor descriptor = DebugUITools.getImageDescriptor("org.eclipse.debug.tests.launch.type"); //$NON-NLS-1$ assertNotNull("The image descriptior type.image.2 must exist", descriptor); //$NON-NLS-1$ @@ -1514,6 +1563,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * @throws Exception * @since 3.9.0 */ + @Test public void testGetProjectMappedResource1() throws Exception { ILaunchConfiguration lc = newConfiguration(null, "test.project.resource.mapping"); //$NON-NLS-1$ try { @@ -1536,6 +1586,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * @throws Exception * @since 3.9.0 */ + @Test public void testGetProjectMappedResource2() throws Exception { ILaunchConfiguration lc = newConfiguration(null, "test.project.resource.mapping"); //$NON-NLS-1$ try { @@ -1557,6 +1608,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * @throws Exception * @since 3.9.0 */ + @Test public void testGetProjectMappedResource3() throws Exception { ILaunchConfiguration lc = newConfiguration(null, "test.project.resource.mapping"); //$NON-NLS-1$ try { @@ -1583,6 +1635,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * @throws Exception * @since 3.9.0 */ + @Test public void testGetProjectMappedResource4() throws Exception { ILaunchConfiguration lc = newConfiguration(null, "test.project.resource.mapping"); //$NON-NLS-1$ try { @@ -1605,6 +1658,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * @throws Exception * @since 3.9.0 */ + @Test public void testNullLaunchConfigurationInLaunch() throws Exception { Launch l = new Launch(null, ILaunchManager.RUN_MODE, null); LaunchManager lm = (LaunchManager) DebugPlugin.getDefault().getLaunchManager(); @@ -1645,6 +1699,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testCopyAttributes() throws CoreException { ILaunchConfigurationWorkingCopy source = newPrototype(null, "test-copy-attributes-source"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy dest = newEmptyConfiguration(null, "test-copy-attributes-dest"); //$NON-NLS-1$ @@ -1660,6 +1715,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testCreationFromPrototype() throws CoreException { ILaunchConfigurationWorkingCopy temp = newPrototype(null, "test-creation-from-prototype"); //$NON-NLS-1$ temp.setAttribute("TEMPLATE", "TEMPLATE"); //$NON-NLS-1$ //$NON-NLS-2$ @@ -1677,6 +1733,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testIsPrototype() throws CoreException { ILaunchConfigurationWorkingCopy wc = newPrototype(null, "test-is-prototype"); //$NON-NLS-1$ ILaunchConfiguration prototype = wc.doSave(); @@ -1693,6 +1750,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testPrototypeChildren() throws CoreException { ILaunchConfigurationWorkingCopy wc = newPrototype(null, "test-references"); //$NON-NLS-1$ ILaunchConfiguration prototype = wc.doSave(); @@ -1722,6 +1780,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testPrototypeRemoveBehavior() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "test-remove"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy t1 = newEmptyPrototype(null, "prototype-1"); //$NON-NLS-1$ @@ -1741,11 +1800,12 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau } /** - * Tests that setting a configuration's prototype to null cleans its prototype - * association. + * Tests that setting a configuration's prototype to null cleans its + * prototype association. * * @throws CoreException */ + @Test public void testUnPrototype() throws CoreException { ILaunchConfigurationWorkingCopy wc = newConfiguration(null, "test-un-prototype"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy t1 = newEmptyPrototype(null, "prototype-un"); //$NON-NLS-1$ @@ -1769,6 +1829,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testNestedPrototypes() throws CoreException { ILaunchConfigurationWorkingCopy t1 = newPrototype(null, "test-nest-root"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy t2 = newPrototype(null, "prototype-nested"); //$NON-NLS-1$ @@ -1786,6 +1847,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testIllegalPrototype() throws CoreException { ILaunchConfigurationWorkingCopy c1 = newConfiguration(null, "test-config"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy t1 = newConfiguration(null, "test-not-a-prototype"); //$NON-NLS-1$ @@ -1804,6 +1866,7 @@ public class LaunchConfigurationTests extends AbstractLaunchTest implements ILau * * @throws CoreException */ + @Test public void testCopyPrototype() throws CoreException { ILaunchConfigurationWorkingCopy t1 = newEmptyPrototype(null, "prototype-to-duplicate"); //$NON-NLS-1$ ILaunchConfigurationWorkingCopy t2 = t1.copy("duplicate-prototype"); //$NON-NLS-1$ |