|
1 | 1 | package org.bouncycastle.bcpg.test; |
2 | 2 |
|
3 | 3 | import org.bouncycastle.bcpg.ContainedPacket; |
4 | | -import org.bouncycastle.bcpg.HexDumpUtil; |
| 4 | +import org.bouncycastle.test.DumpUtil; |
5 | 5 | import org.bouncycastle.util.Arrays; |
6 | 6 | import org.bouncycastle.util.test.SimpleTest; |
7 | 7 |
|
@@ -36,8 +36,8 @@ public void isEncodingEqual(String message, byte[] first, byte[] second) |
36 | 36 | { |
37 | 37 | sb.append(message).append("\n"); |
38 | 38 | } |
39 | | - sb.append("Expected: \n").append(HexDumpUtil.hexdump(first)).append("\n"); |
40 | | - sb.append("Got: \n").append(HexDumpUtil.hexdump(second)); |
| 39 | + sb.append("Expected: \n").append(DumpUtil.hexdump(first)).append("\n"); |
| 40 | + sb.append("Got: \n").append(DumpUtil.hexdump(second)); |
41 | 41 |
|
42 | 42 | isTrue(sb.toString(), first == second || Arrays.areEqual(first, second)); |
43 | 43 | } |
@@ -69,8 +69,8 @@ public void isEncodingEqual(String message, ContainedPacket first, ContainedPack |
69 | 69 | { |
70 | 70 | sb.append(message).append("\n"); |
71 | 71 | } |
72 | | - sb.append("Expected: \n").append(HexDumpUtil.hexdump(first)).append("\n"); |
73 | | - sb.append("Got: \n").append(HexDumpUtil.hexdump(second)); |
| 72 | + sb.append("Expected: \n").append(PacketDumpUtil.hexdump(first)).append("\n"); |
| 73 | + sb.append("Got: \n").append(PacketDumpUtil.hexdump(second)); |
74 | 74 | isTrue(sb.toString(), first == second || Arrays.areEqual(first.getEncoded(), second.getEncoded())); |
75 | 75 | } |
76 | 76 |
|
|
0 commit comments