File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
testbench/src/main/java/org/openjavacard/testbench/main Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public class Bench {
45
45
public Bench (BenchConfiguration config ) {
46
46
mConfig = config ;
47
47
mContext = new GPContext ();
48
+ mGeneric = new GenericContext ();
48
49
mReaders = new ArrayList <>();
49
50
mReaderPollThreads = new ArrayList <>();
50
51
}
@@ -64,7 +65,13 @@ public void configure() {
64
65
// else filter for given names/prefixes
65
66
terminals = new ArrayList <>();
66
67
for (String readerName : mConfig .reader ) {
67
- terminals .add (mGeneric .findSingleTerminal (readerName ));
68
+ List <CardTerminal > found = mGeneric .findTerminals (readerName );
69
+ if (found .isEmpty ()) {
70
+ throw new Error ("Could find any readers matching \" " + readerName + "\" " );
71
+ }
72
+ for (CardTerminal terminal : found ) {
73
+ terminals .add (terminal );
74
+ }
68
75
}
69
76
}
70
77
// complain if no readers at all
You can’t perform that action at this time.
0 commit comments