Search in sources :

Example 16 with SwingDialogWrapper

use of org.openecard.gui.swing.SwingDialogWrapper in project open-ecard by ecsec.

the class UpdateDialogTest method testUpdateDialog.

@Test(enabled = false)
public void testUpdateDialog() throws MalformedURLException, InterruptedException {
    String dlUrl = "https://drivers.luxtrust.lu";
    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);
}
Also used : SwingDialogWrapper(org.openecard.gui.swing.SwingDialogWrapper) SwingUserConsent(org.openecard.gui.swing.SwingUserConsent) SwingUserConsent(org.openecard.gui.swing.SwingUserConsent) UserConsent(org.openecard.gui.UserConsent) Test(org.testng.annotations.Test)

Aggregations

SwingDialogWrapper (org.openecard.gui.swing.SwingDialogWrapper)16 SwingUserConsent (org.openecard.gui.swing.SwingUserConsent)16 Test (org.testng.annotations.Test)13 EstablishContext (iso.std.iso_iec._24727.tech.schema.EstablishContext)8 ListIFDs (iso.std.iso_iec._24727.tech.schema.ListIFDs)6 Expectations (mockit.Expectations)6 Connect (iso.std.iso_iec._24727.tech.schema.Connect)5 ClientEnv (org.openecard.common.ClientEnv)5 EstablishContextResponse (iso.std.iso_iec._24727.tech.schema.EstablishContextResponse)4 IFD (org.openecard.ifd.scio.IFD)4 MessageDispatcher (org.openecard.transport.dispatcher.MessageDispatcher)4 ControlIFD (iso.std.iso_iec._24727.tech.schema.ControlIFD)3 EstablishChannel (iso.std.iso_iec._24727.tech.schema.EstablishChannel)3 EstablishChannelResponse (iso.std.iso_iec._24727.tech.schema.EstablishChannelResponse)3 AddonManager (org.openecard.addon.AddonManager)3 CardStateMap (org.openecard.common.sal.state.CardStateMap)3 SALStateCallback (org.openecard.common.sal.state.SALStateCallback)3 ConnectionHandleType (iso.std.iso_iec._24727.tech.schema.ConnectionHandleType)2 ListIFDsResponse (iso.std.iso_iec._24727.tech.schema.ListIFDsResponse)2 EventDispatcherImpl (org.openecard.common.event.EventDispatcherImpl)2