//------------------------------------------------------------------------- public virtual void test_builder_list() { Swap test = Swap.builder().legs(ImmutableList.of(MOCK_GBP1, MOCK_USD1)).build(); assertEquals(test.Legs, ImmutableList.of(MOCK_GBP1, MOCK_USD1)); assertEquals(test.CrossCurrency, true); assertEquals(test.allPaymentCurrencies(), ImmutableSet.of(GBP, USD)); assertEquals(test.allCurrencies(), ImmutableSet.of(GBP, EUR, USD)); }
//------------------------------------------------------------------------- public virtual void test_allPaymentCurrencies() { Swap test = Swap.of(MOCK_GBP1, MOCK_USD1); assertEquals(test.allPaymentCurrencies(), ImmutableSet.of(GBP, USD)); }