Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public virtual void test_serialization()
        {
            DefaultFxOptionMarketDataLookup test = DefaultFxOptionMarketDataLookup.of(ImmutableMap.of(EUR_USD, VOL_ID1, GBP_USD, VOL_ID1));

            assertSerialization(test);
        }