HDFS-17546. Follow-up backport from branch3.3 (#6908)

HDFS-17546. Follow-up backport from branch3.3
This commit is contained in:
Heagan A 2024-08-21 13:11:32 -07:00 committed by GitHub
parent 68fcd7234c
commit f6c45e0bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,10 +30,10 @@
import org.mockito.invocation.InvocationOnMock; import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer; import org.mockito.stubbing.Answer;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.Mockito;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.when; import static org.mockito.Mockito.when;
import org.mockito.MockitoAnnotations;
/** /**
* Test for JSON based HostsFileReader. * Test for JSON based HostsFileReader.
@ -56,7 +56,7 @@ public class TestCombinedHostsFileReader {
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
callable = Mockito.mock(Callable.class); MockitoAnnotations.initMocks(this);
} }
@After @After