Search in sources :

Example 1 with HavingStrategy

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);
}
Also used : ValueExpression(com.yahoo.bullet.query.expressions.ValueExpression) HavingStrategy(com.yahoo.bullet.querying.postaggregations.HavingStrategy) Test(org.testng.annotations.Test)

Aggregations

ValueExpression (com.yahoo.bullet.query.expressions.ValueExpression)1 HavingStrategy (com.yahoo.bullet.querying.postaggregations.HavingStrategy)1 Test (org.testng.annotations.Test)1