Search in sources :

Example 1 with NodeComparator

use of org.apache.accumulo.core.security.ColumnVisibility.NodeComparator in project accumulo by apache.

the class ColumnVisibilityTest method testEmptyParseTreesAreEqual.

@Test
public void testEmptyParseTreesAreEqual() {
    Comparator<Node> comparator = new NodeComparator(new byte[] {});
    Node empty = new ColumnVisibility().getParseTree();
    assertEquals(0, comparator.compare(empty, parse("")));
}
Also used : NodeComparator(org.apache.accumulo.core.security.ColumnVisibility.NodeComparator) Node(org.apache.accumulo.core.security.ColumnVisibility.Node) Test(org.junit.Test)

Aggregations

Node (org.apache.accumulo.core.security.ColumnVisibility.Node)1 NodeComparator (org.apache.accumulo.core.security.ColumnVisibility.NodeComparator)1 Test (org.junit.Test)1