mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-17 18:02:05 +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 {
|
public class RevocationStateTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void softRevokedRequiresDate() {
|
||||||
|
// noinspection DataFlowIssue, ResultOfMethodCallIgnored
|
||||||
|
assertThrows(NullPointerException.class, () ->
|
||||||
|
RevocationState.softRevoked(null));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNotRevoked() {
|
public void testNotRevoked() {
|
||||||
RevocationState state = RevocationState.notRevoked();
|
RevocationState state = RevocationState.notRevoked();
|
||||||
|
|
Loading…
Reference in a new issue