Bug 201017 TopN, TopPercent, BottomPercent filters will lead NPE when the values contains NULL[07]
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/aggregation/TotalTest.java
}
    }
    
    
    public void testTotalVariance() throws Exception
    {
        IAggregation ag = BuiltInAggregationFactory.getInstance().getAggregation("variance");
        Accumulator ac = ag.newAccumulator();
        assertEquals(IBuildInAggregation.TOTAL_VARIANCE_FUNC, ag.getName());
        assertEquals(IAggregation.SUMMARY_AGGR, ag.getType());
        assertEquals(1, ag.getParameterDefn().length);
        assertTrue(ag.getParameterDefn()[0]);
        
        ac.start();
        for(int i=0; i<doubleArray1.length; i++)
        {
            ac.onRow(new Double[]{new Double(doubleArray1[i])});
        }
        ac.finish();
        assertEquals(new Double(5.980952380952381), ac.getValue());
        
        ac.start();
        for(int i=0; i<doubleArray2.length; i++)
        {
            ac.onRow(new Double[]{new Double(doubleArray2[i])});
        }
        ac.finish();
        assertEquals(new Double(705.4560439560439), ac.getValue());
        
        ac.start();