Esempio n. 1
0
 public void test_builder_varargs() {
   Swap test = Swap.builder().legs(MOCK_GBP1, MOCK_USD1).build();
   assertEquals(test.getLegs(), ImmutableList.of(MOCK_GBP1, MOCK_USD1));
 }
Esempio n. 2
0
 // -------------------------------------------------------------------------
 public void test_expand() {
   Swap test = Swap.builder().legs(ImmutableList.of(MOCK_GBP1, MOCK_USD1)).build();
   assertEquals(test.expand(), ExpandedSwap.of(MOCK_EXPANDED_GBP1, MOCK_EXPANDED_USD1));
 }