178179180181182183184185186
rootPane.setJMenuBar(null); assertNull(rootPane.getJMenuBar()); } public void testSetGetUI() { BasicRootPaneUI ui = new BasicRootPaneUI(); rootPane.setUI(ui); assertTrue(rootPane.getUI() == ui); }