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