File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/test/java/org/scijava/app Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4040import java .util .concurrent .BlockingQueue ;
4141import java .util .concurrent .TimeUnit ;
4242
43+ import org .junit .After ;
4344import org .junit .Before ;
4445import org .junit .Test ;
4546import org .scijava .AbstractContextual ;
@@ -79,14 +80,19 @@ private void eventHandler(final StatusEvent e) {
7980 }
8081
8182 @ Before
82- public void setUp () throws Exception {
83+ public void setUp () {
8384 context = new Context ();
8485 queue = new ArrayBlockingQueue <>(10 );
8586 statusListener = new StatusListener ();
8687 statusListener .setContext (context );
8788 ss = statusListener .statusService ;
8889 }
8990
91+ @ After
92+ public void tearDown () {
93+ context .dispose ();
94+ }
95+
9096 @ Test
9197 public void testShowProgress () throws InterruptedException {
9298 ss .showProgress (15 , 45 );
You can’t perform that action at this time.
0 commit comments