clear static fields in after class

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-12-16 05:52:16 +00:00
parent 497342bd6b
commit 247858615d
1 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,7 @@ import org.easymock.Capture;
import org.easymock.IAnswer;
import org.eclipse.jetty.util.BlockingArrayQueue;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
@ -105,6 +106,15 @@ public class OverseerCollectionProcessorTest extends SolrTestCaseJ4 {
solrZkClientMock = createMock(SolrZkClient.class);
}
@AfterClass
public static void tearDownOnce() {
workQueueMock = null;
shardHandlerMock = null;
zkStateReaderMock = null;
clusterStateMock = null;
solrZkClientMock = null;
}
@Before
public void setUp() throws Exception {
super.setUp();