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

            coverImmutableBean(test);
            DefaultFxOptionMarketDataLookup test2 = DefaultFxOptionMarketDataLookup.of(EUR_USD, VOL_ID1);

            coverBeanEquals(test, test2);

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

            assertSerialization(test);
        }