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 apache/lucene-solr in file ...6b484a/solr.src.test.org.apache.solr.TestTrie.java (2010-12-26)
@@ -22,12 +22,9 @@ import org.apache.solr.schema.FieldType;
 import org.apache.solr.schema.TrieField;
 import org.apache.solr.util.DateMathParser;
 import org.junit.After;
-import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import static org.junit.Assert.*;
-
 import java.text.SimpleDateFormat;
 import java.util.Locale;
 import java.util.TimeZone;
Project apache/lucene-solr in file ...rg.apache.solr.handler.TestReplicationHandler.java (2010-12-26)
@@ -37,12 +37,9 @@ import org.apache.solr.common.util.NamedList;
 import org.apache.solr.common.util.SimpleOrderedMap;
 import org.apache.solr.util.AbstractSolrTestCase;
 import org.junit.AfterClass;
-import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import static org.junit.Assert.*;
-
 import java.io.*;
 import java.net.URL;