//------------------------------------------------------------------------- public virtual void test_resolve() { FxSwapTrade test = sut(); ResolvedFxSwapTrade expected = ResolvedFxSwapTrade.of(TRADE_INFO, PRODUCT.resolve(REF_DATA)); assertEquals(test.resolve(REF_DATA), expected); }
//------------------------------------------------------------------------- public virtual void test_resolve() { FxSwap @base = sut(); ResolvedFxSwap test = @base.resolve(REF_DATA); assertEquals(test.NearLeg, NEAR_LEG.resolve(REF_DATA)); assertEquals(test.FarLeg, FAR_LEG.resolve(REF_DATA)); }