//------------------------------------------------------------------------- public virtual void test_of_trade() { CdsIndexCalibrationTrade test = CdsIndexCalibrationTrade.of(TRADE, QUOTE1); assertEquals(test.UnderlyingTrade, TRADE); assertEquals(test.Quote, QUOTE1); assertEquals(test.Info, TRADE.Info); }
//------------------------------------------------------------------------- public virtual void coverage_trade() { CdsIndexCalibrationTrade test1 = CdsIndexCalibrationTrade.of(TRADE, QUOTE1); coverImmutableBean(test1); CdsIndexCalibrationTrade test2 = CdsIndexCalibrationTrade.of(CdsIndexTrade.builder().product(PRODUCT).info(TRADE_INFO).build(), QUOTE2); coverBeanEquals(test1, test2); }
public virtual void test_serialization_trade() { CdsIndexCalibrationTrade test = CdsIndexCalibrationTrade.of(TRADE, QUOTE3); assertSerialization(test); }