1
0
Fork 0
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:
Paul Schaub 2023-06-12 14:48:58 +02:00
parent 1b7157a548
commit 814421fe79
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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