@Test public void testGetResultFeatureCount_noPostProcessor() { final VariableContext variableContext = createVariableContext(); final BinManager binManager = new BinManager(variableContext, new AggregatorAverageML(variableContext, "e", null)); final int featureCount = binManager.getResultFeatureCount(); assertEquals(4, featureCount); }
@Test public void testGetResultFeatureCount_withPostProcessor() { final VariableContext variableContext = createVariableContext(); final FeatureSelection.Config ppSelection = new FeatureSelection.Config("f_max"); final BinManager binManager = new BinManager(variableContext, ppSelection, new AggregatorMinMax(variableContext, "f")); final int featureCount = binManager.getResultFeatureCount(); assertEquals(1, featureCount); }