use of com.yahoo.bullet.querying.postaggregations.HavingStrategy in project bullet-core by yahoo.
the class HavingTest method testHaving.
@Test
public void testHaving() {
Having having = new Having(new ValueExpression(true));
Assert.assertEquals(having.getExpression(), new ValueExpression(true));
Assert.assertEquals(having.getType(), PostAggregationType.HAVING);
Assert.assertEquals(having.toString(), "{type: HAVING, expression: {value: true, type: BOOLEAN}}");
Assert.assertTrue(having.getPostStrategy() instanceof HavingStrategy);
}
Aggregations