public void testNullPriceIndexConvention() {
final Map<ExternalId, Convention> map = new HashMap<>();
map.put(ZERO_COUPON_INFLATION_ID, INFLATION_LEG);
final CurveNodeCurrencyVisitor visitor = new CurveNodeCurrencyVisitor(new TestConventionSource(map));
final ZeroCouponInflationNode node = new ZeroCouponInflationNode(Tenor.EIGHT_MONTHS, ZERO_COUPON_INFLATION_ID, FIXED_LEG_ID, InflationNodeType.MONTHLY, "TEST");
node.accept(visitor);
}
@Test(expectedExceptions = OpenGammaRuntimeException.class)
public void testWrongTypeZeroCouponInflationConvention() {
final ZeroCouponInflationNode node = new ZeroCouponInflationNode(Tenor.EIGHT_MONTHS, SWAP_3M_IBOR_ID, FIXED_LEG_ID, InflationNodeType.INTERPOLATED, "TEST");