mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
parent
6ea56953d0
commit
c650c25b85
1 changed files with 38 additions and 33 deletions
|
@ -13,6 +13,7 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.ui.tests.wizards.settingswizards;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
@ -111,7 +112,9 @@ public class SettingsImportExportTest extends BaseUITestCase {
|
|||
}
|
||||
};
|
||||
|
||||
page.setDestinationFilePath(getFilePath("settings.xml"));
|
||||
String filePath = getFilePath("settings.xml");
|
||||
try {
|
||||
page.setDestinationFilePath(filePath);
|
||||
page.setSettingsProcessors(processors);
|
||||
page.setSelectedSettingsProcessors(processors);
|
||||
ICProjectDescription desc = CoreModel.getDefault().getProjectDescription(exportProject.getProject(), false);
|
||||
|
@ -149,9 +152,11 @@ public class SettingsImportExportTest extends BaseUITestCase {
|
|||
for (int i = 0; i < importedIncludes.length; i++) {
|
||||
assertTrue(importedIncludes[i].getName().endsWith(EXPORTED_INCLUDES[i].getName()));
|
||||
}
|
||||
|
||||
} finally {
|
||||
CProjectHelper.delete(importProject);
|
||||
CProjectHelper.delete(exportProject);
|
||||
new File(filePath).delete();
|
||||
}
|
||||
}
|
||||
|
||||
public static void vaidateCorrectErrorHandling(String xmlContent) throws Exception {
|
||||
|
|
Loading…
Add table
Reference in a new issue