org.junit.Before



API Populatity

236 Client projects

Project: org.junit

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);