Class TestConstraint
java.lang.Object
org.apache.hadoop.hbase.constraint.TestConstraint
Do the complex testing of constraints against a minicluster
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConstraint to check that it was actually run (or not) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final org.slf4j.Loggerprivate static final byte[]private static final org.apache.hadoop.hbase.TableNameprivate static final byte[]private static HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()static voidstatic voidvoidTest that constraints will fail properlyvoidTest that we run a passing constraintvoidCheck that if we just disable one constraint, thenvoidTest that if we disable all constraints, then nothing gets runvoidCheck to make sure a constraint is unloaded when it fails
-
Field Details
-
CLASS_RULE
-
LOG
-
util
-
tableName
-
dummy
-
row1
-
test
-
-
Constructor Details
-
TestConstraint
public TestConstraint()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
testConstraintPasses
Test that we run a passing constraint- Throws:
Exception
-
testConstraintFails
Test that constraints will fail properly- Throws:
Exception
-
testDisableConstraint
Check that if we just disable one constraint, then- Throws:
Exception
-
testDisableConstraints
Test that if we disable all constraints, then nothing gets run- Throws:
Exception
-
testIsUnloaded
Check to make sure a constraint is unloaded when it fails- Throws:
Exception
-
cleanup
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-