HBASE-23051 Remove unneeded Mockito.mock invocations (#641)
Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
a85c6b4867
commit
1fec3d1dfd
|
@ -64,7 +64,6 @@ import org.mockito.stubbing.Answer;
|
|||
import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;
|
||||
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiRequest;
|
||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiResponse;
|
||||
|
@ -144,7 +143,6 @@ public class MockMasterServices extends MockNoopMasterServices {
|
|||
// Set hbase.rootdir into test dir.
|
||||
Path rootdir = FSUtils.getRootDir(getConfiguration());
|
||||
FSUtils.setRootDir(getConfiguration(), rootdir);
|
||||
Mockito.mock(AdminProtos.AdminService.BlockingInterface.class);
|
||||
}
|
||||
|
||||
public void start(final int numServes, final RSProcedureDispatcher remoteDispatcher)
|
||||
|
|
|
@ -328,7 +328,6 @@ public class TestZKProcedureControllers {
|
|||
final ArrayList<byte[]> dataFromMembers) {
|
||||
ProcedureCoordinator coordinator = Mockito
|
||||
.mock(ProcedureCoordinator.class);
|
||||
Mockito.mock(ProcedureCoordinator.class);
|
||||
Mockito.doAnswer(new Answer<Void>() {
|
||||
@Override
|
||||
public Void answer(InvocationOnMock invocation) throws Throwable {
|
||||
|
|
Loading…
Reference in New Issue