Skip to content

Commit

Permalink
Close test windows in ImportArchiveOperationTest
Browse files Browse the repository at this point in the history
Work towards
eclipse-platform#2432 .
  • Loading branch information
akurtakov committed Dec 10, 2024
1 parent d58c50e commit b379121
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2017 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -39,9 +39,11 @@
import org.eclipse.ui.internal.wizards.datatransfer.TarLeveledStructureProvider;
import org.eclipse.ui.internal.wizards.datatransfer.ZipLeveledStructureProvider;
import org.eclipse.ui.tests.TestPlugin;
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
import org.eclipse.ui.tests.harness.util.FileUtil;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
import org.junit.After;
import org.junit.Rule;
import org.junit.Test;

public class ImportArchiveOperationTest implements IOverwriteQuery {
Expand All @@ -64,6 +66,9 @@ public class ImportArchiveOperationTest implements IOverwriteQuery {

private URL tarFileURL;

@Rule
public CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();

@Override
public String queryOverwrite(String pathString) {
//Always return an empty String - we aren't
Expand Down

0 comments on commit b379121

Please sign in to comment.