Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Commit

Permalink
PLAT-6692 Fixed test for averaging ibor coupon
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelam committed Aug 22, 2014
1 parent ff3d4b9 commit baeac74
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -18,6 +18,7 @@
import org.threeten.bp.ZonedDateTime;

import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import com.opengamma.analytics.financial.instrument.InstrumentDefinitionVisitor;
import com.opengamma.analytics.financial.instrument.index.IborIndex;
import com.opengamma.analytics.financial.instrument.index.IndexON;
Expand Down Expand Up @@ -141,8 +142,11 @@ public void testCouponIborCompoundingFlatSpreadDefinition() {
@Test
public void testCouponIborAverageIndexDefinition() {
CouponIborAverageIndexDefinition coupon =
CouponIborAverageIndexDefinition.from(USD_LIBOR_3M_COUPON, END_DATE, USD_LIBOR_3M, USD_LIBOR_6M, 1, 1, TEST_CALENDAR, TEST_CALENDAR);
assertTrue("Expected no tenor", coupon.accept(INSTANCE).isEmpty());
CouponIborAverageIndexDefinition.from(USD_LIBOR_3M_COUPON,
END_DATE, USD_LIBOR_3M, USD_LIBOR_6M, 1, 1, TEST_CALENDAR, TEST_CALENDAR);
assertEquals("Expected two tenors", Sets.newHashSet(Tenor.of(USD_LIBOR_3M.getTenor()),
Tenor.of(USD_LIBOR_6M.getTenor())),
coupon.accept(INSTANCE));
}

@Test
Expand Down

0 comments on commit baeac74

Please sign in to comment.