Skip to content

Commit

Permalink
FastScannerRandomTest.java: Use our toHexString() instead of Logbac…
Browse files Browse the repository at this point in the history
…k's.

Fixes the failed tests occurring on asterisk-java#613
  • Loading branch information
seanbright committed Aug 17, 2024
1 parent 159fb66 commit 58c3381
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.asteriskjava.util.internal.streamreader;

import ch.qos.logback.core.encoder.ByteArrayUtil;
import org.asteriskjava.manager.internal.ManagerUtil;
import org.asteriskjava.util.internal.SocketConnectionFacadeImpl;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -72,8 +72,8 @@ void compare(String testData, Pattern pattern) throws IOException {

if (!fastResult.equals(scannerResult)) {

System.out.println("Expected " + ByteArrayUtil.toHexString(scannerResult.getBytes()));
System.out.println("Got " + ByteArrayUtil.toHexString(fastResult.getBytes()));
System.out.println("Expected " + ManagerUtil.toHexString(scannerResult.getBytes()));
System.out.println("Got " + ManagerUtil.toHexString(fastResult.getBytes()));
System.out.println("Error " + ctr);
System.out.println("");

Expand Down

0 comments on commit 58c3381

Please sign in to comment.