//------------------------------------------------------------------------- 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)); }
//----------------------------------------------------------------------- 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); }
public virtual void test_serialization() { DefaultFxOptionMarketDataLookup test = DefaultFxOptionMarketDataLookup.of(ImmutableMap.of(EUR_USD, VOL_ID1, GBP_USD, VOL_ID1)); assertSerialization(test); }