Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.polarsys.capella.core.commandline.core.CommandLineConstants;
import org.polarsys.capella.test.framework.api.BasicTestCase;
Expand Down Expand Up @@ -88,10 +90,18 @@ protected void cleanExportResources() throws IOException {

@Override
protected void setUp() throws Exception {
cleanWorkspace();
super.setUp();
cleanExportResources();
}

private static void cleanWorkspace() throws Exception {
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
// Most Tests use reference Test resources directly.
project.delete(IResource.NEVER_DELETE_PROJECT_CONTENT, null);
}
}

@Override
protected void tearDown() throws Exception {
try {
Expand Down