This is an automated email from the ASF dual-hosted git repository.
domgarguilo pushed a commit to branch elasticity
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/elasticity by this push:
new 576c9ccbd6 Add test for NOT_METADATA_TABLE_ID Validator (#3269)
576c9ccbd6 is described below
commit 576c9ccbd6790f146dbcdaaa5df573f8053527ee
Author: Dom G <[email protected]>
AuthorDate: Mon Apr 3 11:15:34 2023 -0400
Add test for NOT_METADATA_TABLE_ID Validator (#3269)
---
.../test/java/org/apache/accumulo/core/util/ValidatorsTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/core/src/test/java/org/apache/accumulo/core/util/ValidatorsTest.java
b/core/src/test/java/org/apache/accumulo/core/util/ValidatorsTest.java
index 3a1c52bd97..aae599fb07 100644
--- a/core/src/test/java/org/apache/accumulo/core/util/ValidatorsTest.java
+++ b/core/src/test/java/org/apache/accumulo/core/util/ValidatorsTest.java
@@ -136,6 +136,14 @@ public class ValidatorsTest {
assertAllThrow(v, List.of(RootTable.ID));
}
+ @Test
+ public void test_NOT_METADATA_TABLE_ID() {
+ Validator<TableId> v = Validators.NOT_METADATA_TABLE_ID;
+ checkNull(v::validate);
+ assertAllValidate(v, List.of(TableId.of(""), RootTable.ID, TableId.of("
#0(U!$. ")));
+ assertAllThrow(v, List.of(MetadataTable.ID));
+ }
+
@Test
public void test_VALID_TABLE_ID() {
Validator<TableId> v = Validators.VALID_TABLE_ID;