コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            RatesCurveInputsId test = RatesCurveInputsId.of(GROUP1, NAME1, ObservableSource.NONE);

            coverImmutableBean(test);
            RatesCurveInputsId test2 = RatesCurveInputsId.of(GROUP2, NAME2, SOURCE2);

            coverBeanEquals(test, test2);
        }
コード例 #2
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            RatesCurveInputsId test = RatesCurveInputsId.of(GROUP1, NAME1, ObservableSource.NONE);

            assertEquals(test.CurveGroupName, GROUP1);
            assertEquals(test.CurveName, NAME1);
            assertEquals(test.ObservableSource, ObservableSource.NONE);
            assertEquals(test.MarketDataType, typeof(RatesCurveInputs));
            assertEquals(test.ToString(), "RatesCurveInputsId:Group1/Name1");
        }
コード例 #3
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         RatesCurveInputsId other = (RatesCurveInputsId)obj;
         return(JodaBeanUtils.equal(curveGroupName, other.curveGroupName) && JodaBeanUtils.equal(curveName, other.curveName) && JodaBeanUtils.equal(observableSource, other.observableSource));
     }
     return(false);
 }
コード例 #4
0
        public virtual void test_serialization()
        {
            RatesCurveInputsId test = RatesCurveInputsId.of(GROUP1, NAME1, ObservableSource.NONE);

            assertSerialization(test);
        }