BasicErrorPaneUI extends ErrorPaneUI { @Override public JInternalFrame getErrorInternalFrame(Component owner) { reinit(); expandedHeight = 0; collapsedHeight = 0; JXInternalErrorFrame frame = new JXInternalErrorFrame(pane); centerWindow(frame, owner); return frame; }  static ComponentUI createUI(JComponent c); @Override void installUI(JComponent c); @Override void uninstallUI(JComponent c); @Override JFrame getErrorFrame(Component owner); @Override JDialog getErrorDialog(Component owner); @Override JInternalFrame getErrorInternalFrame(Component owner); @Override Dimension calculatePreferredSize();  }
@Test public void testGetErrorInternalFrameNull() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(null)); }
@Test public void testGetErrorInternalFrameFrame() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(new JFrame())); }
@Test public void testGetErrorInternalFrameDialog() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(new JDialog())); }
@Test public void testGetErrorInternalFrameContentPane() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } JFrame frame = new JFrame(); assertNotNull(ui.getErrorInternalFrame(frame.getContentPane())); }
@Test public void testGetErrorInternalFrameJPanel() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(new JPanel())); }
@Test public void testGetErrorInternalFrameApplet() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(new Applet())); }
@Test public void testGetErrorInternalFrameJWindow() { if (GraphicsEnvironment.isHeadless()) { LOG.fine("cannot run - headless environment"); return; } assertNotNull(ui.getErrorInternalFrame(new JWindow())); }