public void testPaintClipCustomStroke() throws InterruptedException, InvocationTargetException {
grid.setStroke(new BasicStroke(1, 0, 0, 1, new float[] { 5, 5 }, 0));
CountingGraphics g = paint(new Rectangle(25, 25, 50, 2));
LineChecker c = new LineChecker();
c.require(49, 20, 49, 27);
c.check(g.getLines());
}
public void testPaintClipNonBasicStroke() throws InterruptedException, InvocationTargetException {
grid.setStroke(new Stroke() {