//------------------------------------------------------------------------- public virtual void test_collectIndices() { InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH); ImmutableSet.Builder <Index> builder = ImmutableSet.builder(); test.collectIndices(builder); assertEquals(builder.build(), ImmutableSet.of(GB_HICP)); }
//------------------------------------------------------------------------- public virtual void coverage() { InflationEndMonthRateComputation test1 = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH); coverImmutableBean(test1); InflationEndMonthRateComputation test2 = InflationEndMonthRateComputation.of(CH_CPI, 2324d, YearMonth.of(2015, 4)); coverBeanEquals(test1, test2); }
public virtual void test_serialization() { InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH); assertSerialization(test); }
//------------------------------------------------------------------------- public virtual void test_of() { InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH); assertEquals(test.Index, GB_HICP); }