org.junit.After



API Populatity

175 Client projects

Project: org.junit

Project eclipse/vert.x in file ...a.org.vertx.java.tests.newtests.AsyncTestBase.java (2014-05-29)
@@ -18,6 +18,7 @@ package org.vertx.java.tests.newtests;
  */
 
 import org.hamcrest.Matcher;
+import org.junit.After;
 import org.junit.Assert;
 import org.junit.internal.ArrayComparisonFailure;
 
@@ -82,6 +83,7 @@ public class AsyncTestBase {
     }
   }
 
+  @After
   protected void after() throws Exception {
     assertTrue(awaitCalled);
     checkTestCompleteCalled();
Project hazelcast/hazelcast in file ...xecutor.ParallelExecutorServiceImplStressTest.java (2012-01-16)
@@ -3,6 +3,8 @@ package com.hazelcast.impl.executor;
 
 import com.hazelcast.logging.ILogger;
 import com.hazelcast.logging.StandardLoggerFactory;
+
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -44,6 +46,7 @@ public class ParallelExecutorServiceImplStressTest {
         completedLatch = new CountDownLatch(TASK_COUNT);
     }
 
+    @After
     public void tearDown() throws InterruptedException {
         executorService.shutdownNow();
         assertTrue("ExecutorService failed to terminate within timeout window", executorService.awaitTermination(10, TimeUnit.SECONDS));
Project hazelcast/hazelcast in file ...impl.executor.ParallelExecutorServiceImplTest.java (2012-01-16)
@@ -2,6 +2,8 @@ package com.hazelcast.impl.executor;
 
 import com.hazelcast.logging.ILogger;
 import com.hazelcast.logging.StandardLoggerFactory;
+
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -24,6 +26,7 @@ public class ParallelExecutorServiceImplTest {
         parallelExecutorService = new ParallelExecutorService(logger, executorService);
     }
 
+    @After
     public void tearDown() throws InterruptedException {
         executorService.shutdownNow();
         assertTrue("ExecutorService failed to terminate within timeout window", executorService.awaitTermination(10, TimeUnit.SECONDS));