コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            DefaultIborFutureOptionMarketDataLookup test = DefaultIborFutureOptionMarketDataLookup.of(ImmutableMap.of(USD_LIBOR_3M, VOL_ID1, USD_LIBOR_6M, VOL_ID1));

            coverImmutableBean(test);
            DefaultIborFutureOptionMarketDataLookup test2 = DefaultIborFutureOptionMarketDataLookup.of(USD_LIBOR_3M, VOL_ID1);

            coverBeanEquals(test, test2);

            coverImmutableBean((ImmutableBean)test.marketDataView(MOCK_CALC_MARKET_DATA));
            coverImmutableBean((ImmutableBean)test.marketDataView(MOCK_MARKET_DATA));
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         DefaultIborFutureOptionMarketDataLookup other = (DefaultIborFutureOptionMarketDataLookup)obj;
         return(JodaBeanUtils.equal(volatilityIds, other.volatilityIds));
     }
     return(false);
 }
コード例 #3
0
        public virtual void test_serialization()
        {
            DefaultIborFutureOptionMarketDataLookup test = DefaultIborFutureOptionMarketDataLookup.of(ImmutableMap.of(USD_LIBOR_3M, VOL_ID1, USD_LIBOR_6M, VOL_ID1));

            assertSerialization(test);
        }