Beispiel #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));
        }
Beispiel #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);
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         InflationEndMonthRateComputation other = (InflationEndMonthRateComputation)obj;
         return(JodaBeanUtils.equal(startIndexValue, other.startIndexValue) && JodaBeanUtils.equal(endObservation, other.endObservation));
     }
     return(false);
 }
Beispiel #4
0
        public virtual void test_serialization()
        {
            InflationEndMonthRateComputation test = InflationEndMonthRateComputation.of(GB_HICP, START_INDEX, END_MONTH);

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

            assertEquals(test.Index, GB_HICP);
        }