LIBOR_3M_ID, Tenor.THREE_MONTHS, CompoundingType.COMPOUNDING, Tenor.ONE_MONTH, StubType.SHORT_START, 2, false, StubType.LONG_START, true, 1);
map.put(FIXED_LEG_ID, FIXED_LEG);
map.put(COMPOUNDING_IBOR_ID, compoundingIbor);
final CurveNodeCurrencyVisitor visitor = new CurveNodeCurrencyVisitor(new TestConventionSource(map));
final SwapNode node = new SwapNode(Tenor.ONE_DAY, Tenor.TEN_YEARS, FIXED_LEG_ID, COMPOUNDING_IBOR_ID, SCHEME);
node.accept(visitor);
}
@Test(expectedExceptions = OpenGammaRuntimeException.class)
public void testWrongUnderlyingCompoundingIborLegConvention() {
final Map<ExternalId, Convention> map = new HashMap<>();