コード例 #1
0
 /**
  * Tests the {@link
  * BuilderCoreUtils#isUnmigratedConfig(org.eclipse.debug.core.ILaunchConfiguration)} method
  *
  * @throws Exception
  */
 public void testIsUnmigratedConfig2() throws Exception {
   ILaunchConfiguration config =
       createExternalToolBuilder(getProject(), "testIsUnmigratedConfig2", null); // $NON-NLS-1$
   assertFalse(
       "Shoudl not be considered 'unmigrated'",
       BuilderCoreUtils.isUnmigratedConfig(config)); // $NON-NLS-1$
 }
コード例 #2
0
 /**
  * Tests the {@link
  * BuilderCoreUtils#isUnmigratedConfig(org.eclipse.debug.core.ILaunchConfiguration)} method
  *
  * @throws Exception
  */
 public void testIsUnmigratedConfig1() throws Exception {
   ILaunchConfigurationType type =
       AbstractAntUITest.getLaunchManager()
           .getLaunchConfigurationType(
               IAntLaunchConstants.ID_ANT_BUILDER_LAUNCH_CONFIGURATION_TYPE);
   if (type != null) {
     ILaunchConfigurationWorkingCopy config =
         type.newInstance(
             BuilderCoreUtils.getBuilderFolder(getProject(), true),
             "testIsUnmigratedConfig1"); //$NON-NLS-1$
     assertTrue(
         "should be considered 'unmigrated'",
         BuilderCoreUtils.isUnmigratedConfig(config)); // $NON-NLS-1$
   } else {
     fail("could not find the Ant builder launch configuration type"); // $NON-NLS-1$
   }
 }