public void testSelectInitialValue() {
//TODO Implement selectInitialValue().
}
public void testContainsCustomComponents() {
OptionPaneUI ui = null;
JOptionPane optionPane = null;
optionPane = new JOptionPane();
assertFalse(paneUI.containsCustomComponents(optionPane));
assertFalse(paneUI.containsCustomComponents(null));
paneUI.hasCustomComponents = true;
assertTrue(paneUI.containsCustomComponents(optionPane));
assertTrue(paneUI.containsCustomComponents(null));
optionPane = new JOptionPane("Message", JOptionPane.ERROR_MESSAGE);
ui = optionPane.getUI();
assertFalse(ui.containsCustomComponents(optionPane));
assertFalse(ui.containsCustomComponents(null));
optionPane = new JOptionPane(new JButton("Message"), JOptionPane.ERROR_MESSAGE);
ui = optionPane.getUI();
assertTrue(ui.containsCustomComponents(optionPane));
assertTrue(ui.containsCustomComponents(null));
optionPane = new JOptionPane("Message", JOptionPane.ERROR_MESSAGE,
JOptionPane.CLOSED_OPTION, null, new Object[] { "1", "2" });
ui = optionPane.getUI();
assertFalse(ui.containsCustomComponents(optionPane));
assertFalse(ui.containsCustomComponents(null));
optionPane = new JOptionPane("Message", JOptionPane.ERROR_MESSAGE,
JOptionPane.CLOSED_OPTION, null, new Object[] { new Button("1"), "2" });
ui = optionPane.getUI();
assertTrue(ui.containsCustomComponents(optionPane));
assertTrue(ui.containsCustomComponents(null));
}