assertEquals(label + ":field-value", fv, v.getValue());
basicTest(label, AggregateFunction.class, v, name, s, o, matches);
}
public void testAggregateFunction() {
AggregateFunction v1 = new AggregateFunction("COUNT", false, fv2);
aggregateFunctionTest("v1", v1, "COUNT", false, fv2, "COUNT(a.partyId)", null, false);
AggregateFunction v2 = new AggregateFunction("COUNT", true, fv2);
aggregateFunctionTest("v2", v2, "COUNT", true, fv2, "COUNT(DISTINCT a.partyId)", v1, false);
AggregateFunction v3 = new AggregateFunction("COUNT", true, fv1);
aggregateFunctionTest("v3", v3, "COUNT", true, fv1, "COUNT(DISTINCT partyId)", v1, false);
AggregateFunction v4 = new AggregateFunction("COUNT", false, fv1);
aggregateFunctionTest("v4", v4, "COUNT", false, fv1, "COUNT(partyId)", v1, false);
AggregateFunction v5 = new AggregateFunction("MAX", false, fv2);
aggregateFunctionTest("v5", v5, "MAX", false, fv2, "MAX(a.partyId)", v1, false);
AggregateFunction v6 = new AggregateFunction("COUNT", false, fv2);
aggregateFunctionTest("v6", v6, "COUNT", false, fv2, "COUNT(a.partyId)", v1, true);
}