243244245246247248249250251252253
// A render cap that's larger than the number of line segments defined is fine too shape.setRenderCap(9001); mc.reset(); shape.render(mc); mc.assertCountsEqual(1, 11, seeThru); shape.render(mc); shape.render(mc); shape.render(mc); mc.assertCountsEqual(4, 44, seeThru); }
247248249250251252253254255256257
shape.render(mc); mc.assertCountsEqual(1, 11, seeThru); shape.render(mc); shape.render(mc); shape.render(mc); mc.assertCountsEqual(4, 44, seeThru); } } @SuppressWarnings({ "rawtypes", "unchecked" }) @Test(expected=ClassCastException.class)