UpdateDialog { public UpdateDialog(UserConsent gui, String dlUrl, boolean updateRequired) throws MalformedURLException { this.gui = gui; this.dlUrl = dlUrl; this.updateRequired = updateRequired; this.ucDesc = createDialog(); } UpdateDialog(UserConsent gui, String dlUrl, boolean updateRequired); void display();  }
@Test(enabled = false) public void testUpdateDialog() throws MalformedURLException, InterruptedException { String dlUrl = "https: UserConsent gui = new SwingUserConsent(new SwingDialogWrapper()); final UpdateDialog ud = new UpdateDialog(gui, dlUrl, true); new Thread(new Runnable() { @Override public void run() { ud.display(); } }).start(); Thread.sleep(500); final UpdateDialog ud2 = new UpdateDialog(gui, dlUrl, false); new Thread(new Runnable() { @Override public void run() { ud2.display(); } }).start(); Thread.sleep(500000); }