diff --git a/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/jdt/ui/wizards/EnumWizardTest.java b/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/jdt/ui/wizards/EnumWizardTest.java index f627be8b9..f98f8270f 100644 --- a/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/jdt/ui/wizards/EnumWizardTest.java +++ b/tests/org.eclipse.reddeer.eclipse.test/src/org/eclipse/reddeer/eclipse/test/jdt/ui/wizards/EnumWizardTest.java @@ -18,9 +18,11 @@ import org.eclipse.reddeer.eclipse.jdt.ui.wizards.NewEnumCreationWizard; import org.eclipse.reddeer.eclipse.jdt.ui.wizards.NewEnumWizardPage; import org.eclipse.reddeer.eclipse.jdt.ui.wizards.NewJavaProjectWizardPageOne; +import org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer; import org.eclipse.reddeer.junit.runner.RedDeerSuite; import org.eclipse.reddeer.requirements.cleanworkspace.CleanWorkspaceRequirement.CleanWorkspace; import org.eclipse.reddeer.workbench.impl.editor.TextEditor; +import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; @@ -28,6 +30,14 @@ @RunWith(RedDeerSuite.class) public class EnumWizardTest { + @After + public void cleanUp() { + ProjectExplorer explorer = new ProjectExplorer(); + explorer.open(); + + explorer.deleteAllProjects(true); + } + @Test public void createEnumClass(){ JavaProjectWizard jp = new JavaProjectWizard();