Fix checkstyle issues

This commit is contained in:
Paul Schaub 2023-04-27 14:32:13 +02:00
parent 312cdb69c9
commit 419056ba4c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 21 additions and 33 deletions

View file

@ -4,18 +4,16 @@
package sop; package sop;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import sop.util.UTCUtil;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.text.ParseException; import java.text.ParseException;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import sop.ByteArrayAndResult; import static org.junit.jupiter.api.Assertions.assertEquals;
import sop.Verification;
import sop.util.UTCUtil;
public class ByteArrayAndResultTest { public class ByteArrayAndResultTest {

View file

@ -4,16 +4,15 @@
package sop; package sop;
import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals;
import sop.MicAlg; import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class MicAlgTest { public class MicAlgTest {

View file

@ -5,7 +5,6 @@
package sop; package sop;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sop.Profile;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;

View file

@ -4,14 +4,13 @@
package sop; package sop;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import sop.Ready;
public class ReadyTest { public class ReadyTest {

View file

@ -4,8 +4,9 @@
package sop; package sop;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import sop.exception.SOPGPException;
import sop.util.UTCUtil;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
@ -14,12 +15,8 @@ import java.text.ParseException;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import sop.ByteArrayAndResult; import static org.junit.jupiter.api.Assertions.assertEquals;
import sop.ReadyWithResult;
import sop.Verification;
import sop.exception.SOPGPException;
import sop.util.UTCUtil;
public class ReadyWithResultTest { public class ReadyWithResultTest {

View file

@ -4,14 +4,13 @@
package sop; package sop;
import org.junit.jupiter.api.Test;
import sop.util.HexUtil;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
import sop.SessionKey;
import sop.util.HexUtil;
public class SessionKeyTest { public class SessionKeyTest {
@Test @Test

View file

@ -4,11 +4,9 @@
package sop; package sop;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sop.MicAlg;
import sop.SigningResult; import static org.junit.jupiter.api.Assertions.assertEquals;
public class SigningResultTest { public class SigningResultTest {

View file

@ -5,7 +5,6 @@
package sop; package sop;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sop.Verification;
import sop.enums.SignatureMode; import sop.enums.SignatureMode;
import sop.testsuite.assertions.VerificationAssert; import sop.testsuite.assertions.VerificationAssert;
import sop.util.UTCUtil; import sop.util.UTCUtil;