mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Test constructor of RevocationState.softRevoked() requires non-null date
This commit is contained in:
parent
1b7157a548
commit
814421fe79
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,13 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
|
||||
public class RevocationStateTest {
|
||||
|
||||
@Test
|
||||
public void softRevokedRequiresDate() {
|
||||
// noinspection DataFlowIssue, ResultOfMethodCallIgnored
|
||||
assertThrows(NullPointerException.class, () ->
|
||||
RevocationState.softRevoked(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNotRevoked() {
|
||||
RevocationState state = RevocationState.notRevoked();
|
||||
|
|
Loading…
Reference in a new issue