mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 10:49:39 +02:00
SOP: Allow generation of keys without user-ids
This commit is contained in:
parent
66abd5f65f
commit
2d46fb18f7
3 changed files with 32 additions and 37 deletions
|
@ -6,7 +6,6 @@ package org.pgpainless.sop;
|
|||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -17,7 +16,6 @@ import org.junit.jupiter.api.Test;
|
|||
import org.pgpainless.PGPainless;
|
||||
import org.pgpainless.key.info.KeyRingInfo;
|
||||
import sop.SOP;
|
||||
import sop.exception.SOPGPException;
|
||||
|
||||
public class GenerateKeyTest {
|
||||
|
||||
|
@ -28,11 +26,6 @@ public class GenerateKeyTest {
|
|||
sop = new SOPImpl();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMissingUserId() {
|
||||
assertThrows(SOPGPException.MissingArg.class, () -> sop.generateKey().generate());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void generateKey() throws IOException {
|
||||
byte[] bytes = sop.generateKey()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue