org.junit.Before



Project Netflix/RxJava in file ...a-core.src.main.java.rx.plugins.RxJavaPlugins.java (2013-08-30)
@@ -20,6 +20,7 @@ import static org.junit.Assert.*;
 import java.util.concurrent.atomic.AtomicReference;
 
 import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 
 /**
@@ -153,6 +154,7 @@ public class RxJavaPlugins {
     public static class UnitTest {
 
         @After
+        @Before
         public void reset() {
             // use private access to reset so we can test different initializations via the public static flow
             RxJavaPlugins.getInstance().errorHandler.set(null);
Project ReactiveX/RxJava in file ...a-core.src.main.java.rx.plugins.RxJavaPlugins.java (2013-08-30)
@@ -20,6 +20,7 @@ import static org.junit.Assert.*;
 import java.util.concurrent.atomic.AtomicReference;
 
 import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 
 /**
@@ -153,6 +154,7 @@ public class RxJavaPlugins {
     public static class UnitTest {
 
         @After
+        @Before
         public void reset() {
             // use private access to reset so we can test different initializations via the public static flow
             RxJavaPlugins.getInstance().errorHandler.set(null);
Project RoboBinding/RoboBinding in file ...ding.viewattribute.ResourceBindingDetailsTest.java (2011-11-30)
@@ -22,6 +22,7 @@ import static org.mockito.Mockito.when;
 
 import java.util.Random;
 
+import org.junit.Before;
 import org.junit.Test;
 
 import android.content.Context;
@@ -41,7 +42,7 @@ public class ResourceBindingDetailsTest
 	private Context context;
 	private Resources resources;
 	
-	
+	@Before
 	public void setUp()
 	{
 		context = mock(Context.class);
Project hazelcast/hazelcast in file ...om.hazelcast.client.ClientMemberAttributeTest.java (2014-08-22)
@@ -27,6 +27,7 @@ import com.hazelcast.test.HazelcastTestSupport;
 import com.hazelcast.test.TestHazelcastInstanceFactory;
 import com.hazelcast.test.annotation.QuickTest;
 import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
 import org.junit.runner.RunWith;
@@ -42,6 +43,7 @@ import static org.junit.Assert.*;
 public class ClientMemberAttributeTest extends HazelcastTestSupport {
 
     @After
+    @Before
     public void cleanup() {
         HazelcastClient.shutdownAll();
         Hazelcast.shutdownAll();
Project hazelcast/hazelcast in file ...st.java.com.hazelcast.impl.WanReplicationTest.java (2012-07-20)
@@ -25,6 +25,7 @@ import com.hazelcast.core.HazelcastInstance;
 import com.hazelcast.impl.wan.WanMergeListener;
 import com.hazelcast.merge.PassThroughMergePolicy;
 import org.junit.After;
+import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -49,6 +50,7 @@ public class WanReplicationTest {
     }
 
     @After
+    @Before
     public void cleanup() throws Exception {
         Hazelcast.shutdownAll();
     }