21
21
import org .calypsonet .terminal .reader .selection .spi .SmartCard ;
22
22
import org .eclipse .keyple .card .generic .GenericExtensionService ;
23
23
import org .eclipse .keyple .core .service .*;
24
- import org .eclipse .keyple .core .util .ByteArrayUtil ;
24
+ import org .eclipse .keyple .core .util .HexUtil ;
25
25
import org .eclipse .keyple .core .util .protocol .ContactlessCardCommonProtocol ;
26
26
import org .eclipse .keyple .distributed .LocalServiceClient ;
27
27
import org .eclipse .keyple .distributed .RemotePluginServer ;
@@ -186,7 +186,7 @@ void initRemotePluginWithAsyncNode(AsyncEndpointServerSpi endpointServer) {
186
186
187
187
StubSmartCard getStubSmartCard () {
188
188
return StubSmartCard .builder ()
189
- .withPowerOnData (ByteArrayUtil . fromHex ("1234" ))
189
+ .withPowerOnData (HexUtil . toByteArray ("1234" ))
190
190
.withProtocol (ContactlessCardCommonProtocol .ISO_14443_4 .name ())
191
191
.withSimulatedCommand ("0000000000" , "56789000" ) // Select app
192
192
.withSimulatedCommand ("1111111111" , "ABCD9000" ) // Read
@@ -195,7 +195,7 @@ StubSmartCard getStubSmartCard() {
195
195
196
196
StubSmartCard getBadStubSmartCard () {
197
197
return StubSmartCard .builder ()
198
- .withPowerOnData (ByteArrayUtil . fromHex ("1234" ))
198
+ .withPowerOnData (HexUtil . toByteArray ("1234" ))
199
199
.withProtocol (ContactlessCardCommonProtocol .ISO_14443_4 .name ())
200
200
.withSimulatedCommand ("1111111111" , "ABCD9000" ) // Read
201
201
.build ();
0 commit comments