SaveAllProfilesDialog extends JDialog implements ProfileSelectionDialog { @Override public void open() { setVisible(true); } SaveAllProfilesDialog(Frame owner, List<ProfileForm> profiles); @Override int getResponse(); @Override List<ProfileForm> getSelectedProfiles(); @Override void open();  }
@Test @Ignore public void showGui() throws Exception { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); ProfileForm profile1 = mock(ProfileForm.class); ProfileForm profile2 = mock(ProfileForm.class); when(profile1.getName()).thenReturn("profile1"); when(profile2.getName()).thenReturn("profile2"); List<ProfileForm> profiles = new ArrayList<ProfileForm>(); profiles.add(profile1); profiles.add(profile2); ProfileSelectionDialog dialog = new SaveAllProfilesDialog(null, profiles); dialog.open(); }