HBASE-14015 Allow setting a richer state value when toString a pv2 -- ADDENDUM on branch-1 and derivatives
This commit is contained in:
parent
72cc3baa91
commit
7b1f0b841b
|
@ -25,12 +25,11 @@ import java.io.OutputStream;
|
|||
|
||||
import org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.ServerCrashState;
|
||||
import org.apache.hadoop.hbase.protobuf.generated.ProcedureProtos.ProcedureState;
|
||||
import org.apache.hadoop.hbase.testclassification.MasterTests;
|
||||
import org.apache.hadoop.hbase.testclassification.SmallTests;
|
||||
import org.junit.Test;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
@Category({MasterTests.class, SmallTests.class})
|
||||
@Category({SmallTests.class})
|
||||
public class TestProcedureToString {
|
||||
/**
|
||||
* A do-nothing environment for BasicProcedure.
|
||||
|
@ -78,7 +77,7 @@ public class TestProcedureToString {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Test that I can override the toString for its state value.
|
||||
|
@ -146,4 +145,4 @@ public class TestProcedureToString {
|
|||
assertTrue(p.toString().contains(state.toString()));
|
||||
assertTrue(p.toString().contains(ServerCrashState.SERVER_CRASH_ASSIGN.toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue