use of org.graylog.plugins.pipelineprocessor.ast.expressions.LogicalExpression in project graylog2-server by Graylog2.
the class PrecedenceTest method notVsAndOr.
@Test
public void notVsAndOr() {
final Rule rule = parseRule("rule \"test\" when !true && false then end");
final LogicalExpression when = rule.when();
assertThat(when).isInstanceOf(AndExpression.class);
AndExpression and = (AndExpression) when;
assertThat(and.left()).isInstanceOf(NotExpression.class);
assertThat(and.right()).isInstanceOf(BooleanExpression.class);
}
Aggregations