diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java index 816990e6204..54745f53c0e 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java @@ -793,12 +793,20 @@ public class TestMasterObserver { preShutdownCalled = true; } + public boolean wasShutdownCalled() { + return preShutdownCalled; + } + @Override public void preStopMaster(ObserverContext env) throws IOException { preStopMasterCalled = true; } + public boolean wasStopMasterCalled() { + return preStopMasterCalled; + } + @Override public void preMasterInitialization( ObserverContext ctx) throws IOException { @@ -1017,11 +1025,11 @@ public class TestMasterObserver { } public boolean wasModifyTableHandlerCalled() { - return preModifyColumnHandlerCalled && postModifyColumnHandlerCalled; + return preModifyTableHandlerCalled && postModifyTableHandlerCalled; } public boolean wasModifyTableHandlerCalledOnly() { - return preModifyColumnHandlerCalled && !postModifyColumnHandlerCalled; + return preModifyTableHandlerCalled && !postModifyTableHandlerCalled; } @Override