use of org.javamoney.moneta.function.GroupMonetarySummaryStatistics in project jsr354-ri by JavaMoney.
the class ConversionAggregatorTest method groupBySummarizingMonetaryTest.
@Test
public void groupBySummarizingMonetaryTest() {
GroupMonetarySummaryStatistics group = currenciesToSummary().collect(groupBySummarizingMonetary());
Map<CurrencyUnit, MonetarySummaryStatistics> mapSummary = group.get();
assertEquals(mapSummary.keySet().size(), 3);
}
Aggregations