1
0
Fork 0
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:
Paul Schaub 2020-11-19 17:51:57 +01:00
parent 9f95e7925b
commit 5cdbb125b0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
5 changed files with 73 additions and 53 deletions

View file

@ -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));
}
}