mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-14 00:12:06 +01:00
Add test for OpenPgpFingerprint.getBytes()
This commit is contained in:
parent
8bd53dd95b
commit
35f64e8c39
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
package org.pgpainless.key;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
@ -112,6 +113,7 @@ public class OpenPgpV4FingerprintTest {
|
|||
OpenPgpFingerprint fingerprint = OpenPgpFingerprint.parseFromBinary(binary);
|
||||
assertTrue(fingerprint instanceof OpenPgpV4Fingerprint);
|
||||
assertEquals(hex, fingerprint.toString());
|
||||
assertArrayEquals(binary, fingerprint.getBytes());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -122,6 +124,7 @@ public class OpenPgpV4FingerprintTest {
|
|||
OpenPgpFingerprint fingerprint = OpenPgpFingerprint.parseFromBinary(binary);
|
||||
assertTrue(fingerprint instanceof OpenPgpV4Fingerprint);
|
||||
assertEquals(hex, fingerprint.toString());
|
||||
assertArrayEquals(binary, fingerprint.getBytes());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue