Fix nullability of sop commands

This commit is contained in:
Paul Schaub 2024-09-19 18:40:55 +02:00
parent 40ccb8cc99
commit f7cc9ab816
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 21 additions and 26 deletions

View file

@ -13,7 +13,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.Test;
import sop.SOP;
import sop.exception.SOPGPException;
@ -57,25 +56,21 @@ public class SOPTest {
@Test
public void UnsupportedSubcommandsTest() {
SOP nullCommandSOP = new SOP() {
@NotNull
@Override
public ValidateUserId validateUserId() {
return null;
}
@NotNull
@Override
public CertifyUserId certifyUserId() {
return null;
}
@NotNull
@Override
public MergeCerts mergeCerts() {
return null;
}
@NotNull
@Override
public UpdateKey updateKey() {
return null;