use of org.apache.accumulo.core.security.ColumnVisibility.Node in project accumulo by apache.
the class ColumnVisibilityTest method testParseTreeWithNoChildren.
@Test
public void testParseTreeWithNoChildren() {
Node node = parse("ABC");
assertNode(node, NodeType.TERM, 0, 3);
}
use of org.apache.accumulo.core.security.ColumnVisibility.Node in project accumulo by apache.
the class ColumnVisibilityTest method testParseTreeWithParenthesesAndTwoChildren.
@Test
public void testParseTreeWithParenthesesAndTwoChildren() {
Node node = parse("(ABC|DEF)");
assertNode(node, NodeType.OR, 1, 8);
assertNode(node.getChildren().get(0), NodeType.TERM, 1, 4);
assertNode(node.getChildren().get(1), NodeType.TERM, 5, 8);
}
Aggregations