Class TestConstraints
java.lang.Object
org.apache.hadoop.hbase.constraint.TestConstraints
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestConstraints
extends Object
Test reading/writing the constraints into the
TableDescriptorBuilder.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.TableNamegetTableName(org.junit.jupiter.api.TestInfo testInfo) voidtestConfigurationPreserved(org.junit.jupiter.api.TestInfo testInfo) voidtestEnableDisableRemove(org.junit.jupiter.api.TestInfo testInfo) Test that Constraints are properly enabled, disabled, and removedvoidtestReadWriteWithConf(org.junit.jupiter.api.TestInfo testInfo) voidtestRemoveUnsetConstraint(org.junit.jupiter.api.TestInfo testInfo) Test that if a constraint hasn't been set that there are no problems with attempting to remove it.voidtestSimpleReadWrite(org.junit.jupiter.api.TestInfo testInfo) voidtestUpdateConstraint(org.junit.jupiter.api.TestInfo testInfo) Test that when we update a constraint the ordering is not modified.
-
Constructor Details
-
TestConstraints
public TestConstraints()
-
-
Method Details
-
getTableName
-
testSimpleReadWrite
- Throws:
Exception
-
testReadWriteWithConf
- Throws:
Exception
-
testEnableDisableRemove
Test that Constraints are properly enabled, disabled, and removed- Throws:
Exception
-
testUpdateConstraint
Test that when we update a constraint the ordering is not modified.- Throws:
Exception
-
testRemoveUnsetConstraint
@Test public void testRemoveUnsetConstraint(org.junit.jupiter.api.TestInfo testInfo) throws Exception Test that if a constraint hasn't been set that there are no problems with attempting to remove it.- Throws:
Exception
-
testConfigurationPreserved
@Test public void testConfigurationPreserved(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-