diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockNoopMasterServices.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockNoopMasterServices.java index 1150c4eb16a..73db93341fc 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockNoopMasterServices.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockNoopMasterServices.java @@ -64,13 +64,9 @@ public class MockNoopMasterServices implements MasterServices { private final Configuration conf; private final MetricsMaster metricsMaster; - public MockNoopMasterServices() { - this(null); - } - public MockNoopMasterServices(final Configuration conf) { this.conf = conf; - this.metricsMaster = new MetricsMaster(new MetricsMasterWrapperImpl(null)); + this.metricsMaster = new MetricsMaster(new MetricsMasterWrapperImpl(mock(HMaster.class))); } @Override