Skip to content
Snippets Groups Projects
Commit ef05b657 authored by Martin Vogel's avatar Martin Vogel
Browse files

chore(checkstyle): fix checkstyle issues

parent b0610358
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ public class JWECryptoServiceTest { ...@@ -18,7 +18,7 @@ public class JWECryptoServiceTest {
final CryptoService underTest = new JWECryptoService(new HashService()); final CryptoService underTest = new JWECryptoService(new HashService());
@Test @Test
public void encryptString() throws JOSEException { void encryptString() throws JOSEException {
// Given // Given
final RSAKey key = generateRsaKey(4096); final RSAKey key = generateRsaKey(4096);
final RSAKey publicKey = key.toPublicJWK(); final RSAKey publicKey = key.toPublicJWK();
...@@ -28,11 +28,11 @@ public class JWECryptoServiceTest { ...@@ -28,11 +28,11 @@ public class JWECryptoServiceTest {
// Then // Then
assertNotNull(encryptedData); assertNotNull(encryptedData);
assertNotEquals(encryptedData, "some foo"); assertNotEquals("some foo", encryptedData);
} }
@Test @Test
public void decryptString() throws JOSEException { void decryptString() throws JOSEException {
// Given // Given
final RSAKey privateKey = generateRsaKey(4096); final RSAKey privateKey = generateRsaKey(4096);
final RSAKey publicKey = privateKey.toPublicJWK(); final RSAKey publicKey = privateKey.toPublicJWK();
...@@ -43,11 +43,11 @@ public class JWECryptoServiceTest { ...@@ -43,11 +43,11 @@ public class JWECryptoServiceTest {
// Then // Then
assertNotNull(decrypted); assertNotNull(decrypted);
assertEquals(decrypted, "some foo"); assertEquals("some foo", decrypted);
} }
@Test @Test
public void encryptBytes() throws JOSEException { void encryptBytes() throws JOSEException {
// Given // Given
final RSAKey key = generateRsaKey(4096); final RSAKey key = generateRsaKey(4096);
final RSAKey publicKey = key.toPublicJWK(); final RSAKey publicKey = key.toPublicJWK();
...@@ -57,12 +57,12 @@ public class JWECryptoServiceTest { ...@@ -57,12 +57,12 @@ public class JWECryptoServiceTest {
// Then // Then
assertNotNull(encryptedData); assertNotNull(encryptedData);
assertNotEquals(encryptedData, "some foo"); assertNotEquals("some foo", encryptedData);
} }
@Test @Test
public void decryptBytes() throws JOSEException { void decryptBytes() throws JOSEException {
// Given // Given
final RSAKey privateKey = generateRsaKey(4096); final RSAKey privateKey = generateRsaKey(4096);
final RSAKey publicKey = privateKey.toPublicJWK(); final RSAKey publicKey = privateKey.toPublicJWK();
...@@ -78,7 +78,7 @@ public class JWECryptoServiceTest { ...@@ -78,7 +78,7 @@ public class JWECryptoServiceTest {
@Test @Test
public void hashBytes() { void hashBytes() {
final var expectedHash = "6cb40f8c9a1f4411c6b83fefdd950009ec2906e3747e9146e7704234cdb6a7b11eefb9e6221fdad3cda7c5ece6a62ef535ca2ac84ba61226c9835062cf84db56"; final var expectedHash = "6cb40f8c9a1f4411c6b83fefdd950009ec2906e3747e9146e7704234cdb6a7b11eefb9e6221fdad3cda7c5ece6a62ef535ca2ac84ba61226c9835062cf84db56";
final byte[] contentToHash = "content to hash".getBytes(StandardCharsets.UTF_8); final byte[] contentToHash = "content to hash".getBytes(StandardCharsets.UTF_8);
final String sha512Hash = underTest.hashBytes(contentToHash); final String sha512Hash = underTest.hashBytes(contentToHash);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment