This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-access.git
The following commit(s) were added to refs/heads/main by this push:
new ac7ae6e Fix trivial assertion in test
ac7ae6e is described below
commit ac7ae6eda681d716210aa1d6ae5cb8e6156c2b26
Author: Christopher Tubbs <[email protected]>
AuthorDate: Tue Apr 21 17:07:31 2026 -0400
Fix trivial assertion in test
---
.../src/test/java/org/apache/accumulo/access/antlr4/Antlr4Tests.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/modules/antlr4-example/src/test/java/org/apache/accumulo/access/antlr4/Antlr4Tests.java
b/modules/antlr4-example/src/test/java/org/apache/accumulo/access/antlr4/Antlr4Tests.java
index b0f1902..1eecfd1 100644
---
a/modules/antlr4-example/src/test/java/org/apache/accumulo/access/antlr4/Antlr4Tests.java
+++
b/modules/antlr4-example/src/test/java/org/apache/accumulo/access/antlr4/Antlr4Tests.java
@@ -20,6 +20,7 @@ package org.apache.accumulo.access.antlr4;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -148,7 +149,7 @@ class Antlr4Tests {
assertFalse(testSet.getTests().isEmpty());
for (TestExpressions test : testSet.getTests()) {
- assertFalse(test.getExpressions().length == 0);
+ assertNotEquals(0, test.getExpressions().length);
for (String expression : test.getExpressions()) {
switch (test.getExpectedResult()) {
case ACCESSIBLE -> {