Add utility method to close secondary shells after tests
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests / src / org / eclipse / tracecompass / lttng2 / kernel / ui / swtbot / tests / FindDialogTestBase.java
index aeb7b150f46b7f25e62da2191dda25d49f3ae3d7..0caaf6a3cdcc79f17ddcddbd9e7799b78af04299 100644 (file)
@@ -38,7 +38,7 @@ import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
 import org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphControl;
-import org.junit.AfterClass;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -94,10 +94,10 @@ public abstract class FindDialogTestBase extends KernelTestBase {
     }
 
     /**
-     * After class method to close the dialog
+     * After method to close the dialog
      */
-    @AfterClass
-    public static void afterTest() {
+    @After
+    public void afterTest() {
         closeDialog(getDialogBot());
     }
 
This page took 0.024428 seconds and 5 git commands to generate.