//-------------------------------------------------------------------------
        public virtual void coverage()
        {
            DefaultBondFutureOptionMarketDataLookup test = DefaultBondFutureOptionMarketDataLookup.of(ImmutableMap.of(SEC_OG1, VOL_ID1, SEC_OG2, VOL_ID1));

            coverImmutableBean(test);
            DefaultBondFutureOptionMarketDataLookup test2 = DefaultBondFutureOptionMarketDataLookup.of(SEC_OG1, VOL_ID1);

            coverBeanEquals(test, test2);

            coverImmutableBean((ImmutableBean)test.marketDataView(MOCK_CALC_MARKET_DATA));
            coverImmutableBean((ImmutableBean)test.marketDataView(MOCK_MARKET_DATA));
        }
Beispiel #2
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         DefaultBondFutureOptionMarketDataLookup other = (DefaultBondFutureOptionMarketDataLookup)obj;
         return(JodaBeanUtils.equal(volatilityIds, other.volatilityIds));
     }
     return(false);
 }
        public virtual void test_serialization()
        {
            DefaultBondFutureOptionMarketDataLookup test = DefaultBondFutureOptionMarketDataLookup.of(ImmutableMap.of(SEC_OG1, VOL_ID1, SEC_OG2, VOL_ID1));

            assertSerialization(test);
        }