Search in sources :

Example 1 with GroupMonetarySummaryStatistics

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);
}
Also used : MonetarySummaryStatistics(org.javamoney.moneta.function.MonetarySummaryStatistics) GroupMonetarySummaryStatistics(org.javamoney.moneta.function.GroupMonetarySummaryStatistics) CurrencyUnit(javax.money.CurrencyUnit) GroupMonetarySummaryStatistics(org.javamoney.moneta.function.GroupMonetarySummaryStatistics) Test(org.testng.annotations.Test)

Aggregations

CurrencyUnit (javax.money.CurrencyUnit)1 GroupMonetarySummaryStatistics (org.javamoney.moneta.function.GroupMonetarySummaryStatistics)1 MonetarySummaryStatistics (org.javamoney.moneta.function.MonetarySummaryStatistics)1 Test (org.testng.annotations.Test)1