public class TestConstraint extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestConstraint.CheckWasRunConstraint
Constraint to check that it was actually run (or not)
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
dummy |
private static org.slf4j.Logger |
LOG |
private static byte[] |
row1 |
private static org.apache.hadoop.hbase.TableName |
tableName |
private static byte[] |
test |
private static HBaseTestingUtility |
util |
Constructor and Description |
---|
TestConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testConstraintFails()
Test that constraints will fail properly n
|
void |
testConstraintPasses()
Test that we run a passing constraint n
|
void |
testDisableConstraint()
Check that if we just disable one constraint, then n
|
void |
testDisableConstraints()
Test that if we disable all constraints, then nothing gets run n
|
void |
testIsUnloaded()
Check to make sure a constraint is unloaded when it fails n
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static HBaseTestingUtility util
private static final org.apache.hadoop.hbase.TableName tableName
private static final byte[] dummy
private static final byte[] row1
private static final byte[] test
public TestConstraint()
public static void setUpBeforeClass() throws Exception
Exception
public void testConstraintPasses() throws Exception
Exception
public void testConstraintFails() throws Exception
Exception
public void testDisableConstraint() throws Throwable
Throwable
public void testDisableConstraints() throws Throwable
Throwable
public void testIsUnloaded() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.