예제 #1
0
        //-------------------------------------------------------------------------
        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));
        }
예제 #2
0
        //-------------------------------------------------------------------------
        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);
        }
예제 #3
0
        public virtual void test_serialization()
        {
            InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH);

            assertSerialization(test);
        }
예제 #4
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH);

            assertEquals(test.Index, GB_HICP);
        }