Beispiel #1
0
        //-------------------------------------------------------------------------
        public virtual void of()
        {
            TenorRawOptionData test = TenorRawOptionData.of(DATA_MAP);

            assertEquals(test.Data, DATA_MAP);
            assertEquals(test.getData(TENOR_3M), DATA1);
            assertEquals(test.Tenors, ImmutableList.of(TENOR_3M, TENOR_6M));
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         TenorRawOptionData other = (TenorRawOptionData)obj;
         return(JodaBeanUtils.equal(data, other.data));
     }
     return(false);
 }
Beispiel #3
0
        public virtual void test_serialization()
        {
            TenorRawOptionData test = TenorRawOptionData.of(DATA_MAP);

            assertSerialization(test);
        }
Beispiel #4
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            TenorRawOptionData test = TenorRawOptionData.of(DATA_MAP);

            coverImmutableBean(test);
        }