mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-14 04:39:39 +02:00
Refactoring: move KeyRingEditor to SecretKeyRingEditor in prep for more editor classes
This commit is contained in:
parent
9f95e7925b
commit
5cdbb125b0
5 changed files with 73 additions and 53 deletions
|
@ -18,12 +18,13 @@ package org.pgpainless.key.modification;
|
|||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.pgpainless.key.modification.secretkeyring.SecretKeyRingEditor;
|
||||
|
||||
public class KeyRingEditorTest {
|
||||
|
||||
@Test
|
||||
public void testConstructorThrowsNpeForNull() {
|
||||
assertThrows(NullPointerException.class,
|
||||
() -> new KeyRingEditor(null));
|
||||
() -> new SecretKeyRingEditor(null));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue