/** * 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$ } }
/* * (non-Javadoc) * * @see org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest#setUp() */ @Override protected void setUp() throws Exception { super.setUp(); // create the external tool builder dir BuilderCoreUtils.getBuilderFolder(getProject(), true); }