Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-06-06 19:16:15 +0000
committerChristian W. Damus2014-06-06 19:16:15 +0000
commit55b357623dc16e2a6b7c21f56c545a18ccf30efc (patch)
treedcc6b690444101d6870fc117ecee9cb882610bee /tests/junit/plugins/junit
parent2cbe5a7c64dd0bd916c7eb0962bb8cb2ffad6101 (diff)
downloadorg.eclipse.papyrus-55b357623dc16e2a6b7c21f56c545a18ccf30efc.tar.gz
org.eclipse.papyrus-55b357623dc16e2a6b7c21f56c545a18ccf30efc.tar.xz
org.eclipse.papyrus-55b357623dc16e2a6b7c21f56c545a18ccf30efc.zip
[Tests] Fix SWT filter leaks in Sequence Diagram tests
The sequence diagram tests neglect to remove the SWT filters installed by the PopupUtil helper API, interfering with subsequent tests in the same and other suites. This is now refactored to ensure that these filters are removed after each test completes that needs them.
Diffstat (limited to 'tests/junit/plugins/junit')
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/AbstractHouseKeeperRule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/AbstractHouseKeeperRule.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/AbstractHouseKeeperRule.java
index fc7a9c76de0..acacb3f0d33 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/AbstractHouseKeeperRule.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/AbstractHouseKeeperRule.java
@@ -599,7 +599,7 @@ public abstract class AbstractHouseKeeperRule {
private static final class ReflectiveDisposer implements Disposer<Object> {
- static final ReflectiveDisposer INSTANCE = new ReflectiveDisposer("dispose");
+ static final ReflectiveDisposer INSTANCE = new ReflectiveDisposer("dispose"); //$NON-NLS-1$
private final String disposeMethod;
@@ -622,7 +622,7 @@ public abstract class AbstractHouseKeeperRule {
}
public void dispose(Object object) throws Exception {
- new Duck(object).quack("dispose", arguments);
+ new Duck(object).quack(disposeMethod, arguments);
}
}
}

Back to the top