Skip to content

Commit 06ff6e2

Browse files
feat: remove the use of deprecated methods of Util library.
1 parent 0f3b5be commit 06ff6e2

File tree

1 file changed

+3
-3
lines changed
  • src/test/java/org/eclipse/keyple/distributed/integration/readerclientside

1 file changed

+3
-3
lines changed

src/test/java/org/eclipse/keyple/distributed/integration/readerclientside/BaseScenario.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.calypsonet.terminal.reader.selection.spi.SmartCard;
2222
import org.eclipse.keyple.card.generic.GenericExtensionService;
2323
import org.eclipse.keyple.core.service.*;
24-
import org.eclipse.keyple.core.util.ByteArrayUtil;
24+
import org.eclipse.keyple.core.util.HexUtil;
2525
import org.eclipse.keyple.core.util.protocol.ContactlessCardCommonProtocol;
2626
import org.eclipse.keyple.distributed.LocalServiceClient;
2727
import org.eclipse.keyple.distributed.RemotePluginServer;
@@ -186,7 +186,7 @@ void initRemotePluginWithAsyncNode(AsyncEndpointServerSpi endpointServer) {
186186

187187
StubSmartCard getStubSmartCard() {
188188
return StubSmartCard.builder()
189-
.withPowerOnData(ByteArrayUtil.fromHex("1234"))
189+
.withPowerOnData(HexUtil.toByteArray("1234"))
190190
.withProtocol(ContactlessCardCommonProtocol.ISO_14443_4.name())
191191
.withSimulatedCommand("0000000000", "56789000") // Select app
192192
.withSimulatedCommand("1111111111", "ABCD9000") // Read
@@ -195,7 +195,7 @@ StubSmartCard getStubSmartCard() {
195195

196196
StubSmartCard getBadStubSmartCard() {
197197
return StubSmartCard.builder()
198-
.withPowerOnData(ByteArrayUtil.fromHex("1234"))
198+
.withPowerOnData(HexUtil.toByteArray("1234"))
199199
.withProtocol(ContactlessCardCommonProtocol.ISO_14443_4.name())
200200
.withSimulatedCommand("1111111111", "ABCD9000") // Read
201201
.build();

0 commit comments

Comments
 (0)