From ef05b657872506341fbd40d543144cedbb84d593 Mon Sep 17 00:00:00 2001 From: Martin Vogel <martin.vogel@sinc.de> Date: Wed, 7 Sep 2022 11:41:58 +0200 Subject: [PATCH] chore(checkstyle): fix checkstyle issues --- .../core/crypto/JWECryptoServiceTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/test/java/de/fitko/fitconnect/core/crypto/JWECryptoServiceTest.java b/core/src/test/java/de/fitko/fitconnect/core/crypto/JWECryptoServiceTest.java index 17ea189b2..3455ca225 100644 --- a/core/src/test/java/de/fitko/fitconnect/core/crypto/JWECryptoServiceTest.java +++ b/core/src/test/java/de/fitko/fitconnect/core/crypto/JWECryptoServiceTest.java @@ -18,7 +18,7 @@ public class JWECryptoServiceTest { final CryptoService underTest = new JWECryptoService(new HashService()); @Test - public void encryptString() throws JOSEException { + void encryptString() throws JOSEException { // Given final RSAKey key = generateRsaKey(4096); final RSAKey publicKey = key.toPublicJWK(); @@ -28,11 +28,11 @@ public class JWECryptoServiceTest { // Then assertNotNull(encryptedData); - assertNotEquals(encryptedData, "some foo"); + assertNotEquals("some foo", encryptedData); } @Test - public void decryptString() throws JOSEException { + void decryptString() throws JOSEException { // Given final RSAKey privateKey = generateRsaKey(4096); final RSAKey publicKey = privateKey.toPublicJWK(); @@ -43,11 +43,11 @@ public class JWECryptoServiceTest { // Then assertNotNull(decrypted); - assertEquals(decrypted, "some foo"); + assertEquals("some foo", decrypted); } @Test - public void encryptBytes() throws JOSEException { + void encryptBytes() throws JOSEException { // Given final RSAKey key = generateRsaKey(4096); final RSAKey publicKey = key.toPublicJWK(); @@ -57,12 +57,12 @@ public class JWECryptoServiceTest { // Then assertNotNull(encryptedData); - assertNotEquals(encryptedData, "some foo"); + assertNotEquals("some foo", encryptedData); } @Test - public void decryptBytes() throws JOSEException { + void decryptBytes() throws JOSEException { // Given final RSAKey privateKey = generateRsaKey(4096); final RSAKey publicKey = privateKey.toPublicJWK(); @@ -78,7 +78,7 @@ public class JWECryptoServiceTest { @Test - public void hashBytes() { + void hashBytes() { final var expectedHash = "6cb40f8c9a1f4411c6b83fefdd950009ec2906e3747e9146e7704234cdb6a7b11eefb9e6221fdad3cda7c5ece6a62ef535ca2ac84ba61226c9835062cf84db56"; final byte[] contentToHash = "content to hash".getBytes(StandardCharsets.UTF_8); final String sha512Hash = underTest.hashBytes(contentToHash); -- GitLab