Skip to content

Commit b379121

Browse files
committed
Close test windows in ImportArchiveOperationTest
Work towards #2432 .
1 parent d58c50e commit b379121

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportArchiveOperationTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2017 IBM Corporation and others.
2+
* Copyright (c) 2000, 2024 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -39,9 +39,11 @@
3939
import org.eclipse.ui.internal.wizards.datatransfer.TarLeveledStructureProvider;
4040
import org.eclipse.ui.internal.wizards.datatransfer.ZipLeveledStructureProvider;
4141
import org.eclipse.ui.tests.TestPlugin;
42+
import org.eclipse.ui.tests.harness.util.CloseTestWindowsRule;
4243
import org.eclipse.ui.tests.harness.util.FileUtil;
4344
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
4445
import org.junit.After;
46+
import org.junit.Rule;
4547
import org.junit.Test;
4648

4749
public class ImportArchiveOperationTest implements IOverwriteQuery {
@@ -64,6 +66,9 @@ public class ImportArchiveOperationTest implements IOverwriteQuery {
6466

6567
private URL tarFileURL;
6668

69+
@Rule
70+
public CloseTestWindowsRule closeTestWindows = new CloseTestWindowsRule();
71+
6772
@Override
6873
public String queryOverwrite(String pathString) {
6974
//Always return an empty String - we aren't

0 commit comments

Comments
 (0)