for (String argument : args) {
int testcase = Integer.parseInt(argument);
switch (testcase) {
case 0:
new CompositeViewer<VisualisiereStammdatenAC, EmptyResourceConfiguration, VisualisiereStammdatenSelectionInOut>(
new StammdatenAnzeigenCompositeFactory());
break;
case 1:
new CompositeViewer<OeffneKundendatensatzAC, EmptyResourceConfiguration, OeffneKundendatensatzSelectionInOut>(
new OeffneKundendatensatzCompositeFactory());
break;
case 2:
new CompositeViewer<EmptyActionConfiguration, EmptyResourceConfiguration, ErfasseSuchkriteriumSelectionInOut>(
new ErfasseSuchkriteriumCompositeFactory());
break;
case 3:
new CompositeViewer<EmptyActionConfiguration, EmptyResourceConfiguration, VisualisiereVertragsdatenSelectionInOut>(
new VertragsdatenAnzeigenCompositeFactory());
break;
case 4:
new CompositeViewer<EmptyActionConfiguration, EmptyResourceConfiguration, VisualisiereAnschriftSelectionInOut>(
new VisualisiereAnschriftCompositeFactory());
break;
case 5:
new CompositeViewer<EmptyActionConfiguration, EmptyResourceConfiguration, VisualisiereGefundeneKundenSelectionInOut>(
new VisualisiereGefundeneKundenCompositeFactory());
break;
case 6:
new CompositeViewer<EmptyActionConfiguration, EmptyResourceConfiguration, VisualisiereKundendatensatzSelectionInOut>(
new VisualisiereKundendatensatzCompositeFactory());
break;
default:
throw new IllegalArgumentException(
"Please specify a test id to run.");
}
}
} else {
new CompositeViewer<VisualisiereStammdatenAC, EmptyResourceConfiguration, VisualisiereStammdatenSelectionInOut>(
new StammdatenAnzeigenCompositeFactory());
}
} catch (Exception e) {
e.printStackTrace();
}
}