Class TestConstraint
java.lang.Object
org.apache.hadoop.hbase.constraint.TestConstraint
Do the complex testing of constraints against a minicluster
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Constraint to check that it was actually run (or not) -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final org.slf4j.Logger
private static final byte[]
private static final org.apache.hadoop.hbase.TableName
private static final byte[]
private static HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
static void
static void
void
Test that constraints will fail properlyvoid
Test that we run a passing constraintvoid
Check that if we just disable one constraint, thenvoid
Test that if we disable all constraints, then nothing gets runvoid
Check 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:
Throwable
-
testDisableConstraints
Test that if we disable all constraints, then nothing gets run- Throws:
Throwable
-
testIsUnloaded
Check to make sure a constraint is unloaded when it fails- Throws:
Exception
-
cleanup
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-