@Override protected void after() { System.setErr(systemErr); System.setOut(systemOut); DebugGraphics.setLogStream(logStream); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); }
public final void testPaint() { // Regression test for HARMONY-2527 final Component c = new Frame(); c.paint(c.getGraphics()); // End of regression for HARMONY-2527 // Regression for HARMONY-3443 final Graphics g; final Frame f = new Frame(); f.add(new JButton()); f.setVisible(true); g = f.getGraphics(); try { g.setClip(null); assertNull(g.getClip()); f.paint(g); } finally { f.dispose(); } // End of regression for HARMONY-3443 // Regression for HARMONY-3430 new Container().paint(new DebugGraphics()); // End of regression for HARMONY-3430 }
public void testDrawDashedRect() { g = new DebugGraphics(g); Color color = g.getColor(); BasicGraphicsUtils.drawDashedRect(g, x, y, w, h); assertSame(color, g.getColor()); }