use of org.openecard.gui.UserConsentNavigator in project open-ecard by ecsec.
the class RunGUI method runUC.
/**
* Uncomment the
* <code>@Ignore</code> line to run a demo gui so you can debug it.
*/
@Test
public void runUC() {
try {
SwingDialogWrapper dialog = new SwingDialogWrapper();
SwingUserConsent ucEngine = new SwingUserConsent(dialog);
UserConsentNavigator navigator = ucEngine.obtainNavigator(uc);
ExecutionEngine exec = new ExecutionEngine(navigator);
exec.process();
} catch (Throwable w) {
_logger.error(w.getMessage(), w);
}
}
use of org.openecard.gui.UserConsentNavigator in project open-ecard by ecsec.
the class EacNavigatorFactoryTest method testGivenCorrectValuesThenCreateFromShouldCreateCorrectInstance.
@Test
public void testGivenCorrectValuesThenCreateFromShouldCreateCorrectInstance() {
final List<Step> expectedSteps = createInitialSteps();
new Expectations() {
{
ucd.getDialogType();
result = "EAC";
ucd.getSteps();
result = expectedSteps;
}
};
EacNavigatorFactory sut = new EacNavigatorFactory();
final UserConsentNavigator result = sut.createFrom(ucd);
assertEquals(result.getClass(), EacNavigator.class);
}
use of org.openecard.gui.UserConsentNavigator in project open-ecard by ecsec.
the class UpdateDialog method display.
public void display() {
UserConsentNavigator nav = gui.obtainNavigator(ucDesc);
ExecutionEngine ee = new ExecutionEngine(nav);
ee.process();
}
use of org.openecard.gui.UserConsentNavigator in project open-ecard by ecsec.
the class ChangePINDialog method show.
/**
* Shows this Dialog.
*/
public void show() {
UserConsentNavigator ucr = gui.obtainNavigator(createUserConsentDescription());
ExecutionEngine exec = new ExecutionEngine(ucr);
exec.process();
}
use of org.openecard.gui.UserConsentNavigator in project open-ecard by ecsec.
the class PINDialog method show.
/**
* Shows this Dialog.
*/
public void show() {
UserConsentNavigator ucr = gui.obtainNavigator(createUserConsentDescription());
ExecutionEngine exec = new ExecutionEngine(ucr);
exec.process();
}
Aggregations