Skip to content

Commit

Permalink
Reformat code in SignatureDataParserTest
Browse files Browse the repository at this point in the history
A follow-up to #500
  • Loading branch information
banterCZ committed Sep 11, 2023
1 parent 3b7b525 commit 379073c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class SignatureDataParserTest {

@Test
@Test
void testSignatureDataParserValid() {
final byte[] rawData = "POST&L3BhL3Rva2VuL2NyZWF0ZQ==&YD375huieypEKAr16VhgZg==&eyJlbmNyeXB0ZWREYXRhIjoiU3poXC9MNU9HUkRpdStIb2NtQ0ZXT1E9PSIsIm5vbmNlIjoiSmtnM3F3bEN1cG5UTXJVbWFYaU5adz09IiwibWFjIjoiQnd1Q2V4eVN1aWh3ckNRXC9ETFJNc0pEVXBMMW5GM2RKMHpZdVFrcXNjTjA9IiwiZXBoZW1lcmFsUHVibGljS2V5IjoiQWp6ODBmdzZtRDZYbVBDMUxYdEtUZWN2MHhFNUJ1R3FBVEtmaHNtTHhuVkEifQ==&Pgd67vpBT6/Y+2fNBt7Sxg==".getBytes(StandardCharsets.UTF_8);
final SignatureRequestData parsedData = SignatureDataParser.parseRequestData(rawData);
Expand All @@ -42,11 +42,11 @@ void testSignatureDataParserValid() {
assertEquals("{\"encryptedData\":\"Szh\\/L5OGRDiu+HocmCFWOQ==\",\"nonce\":\"Jkg3qwlCupnTMrUmaXiNZw==\",\"mac\":\"BwuCexySuihwrCQ\\/DLRMsJDUpL1nF3dJ0zYuQkqscN0=\",\"ephemeralPublicKey\":\"Ajz80fw6mD6XmPC1LXtKTecv0xE5BuGqATKfhsmLxnVA\"}", parsedData.getBody());
}

@Test
@Test
void testSignatureDataParserValidInvalid() {
final byte[] rawData = "POSTL3BhL3Rva2VuL2NyZWF0ZQ==&YD375huieypEKAr16VhgZg==&eyJlbmNyeXB0ZWREYXRhIjoiU3poXC9MNU9HUkRpdStIb2NtQ0ZXT1E9PSIsIm5vbmNlIjoiSmtnM3F3bEN1cG5UTXJVbWFYaU5adz09IiwibWFjIjoiQnd1Q2V4eVN1aWh3ckNRXC9ETFJNc0pEVXBMMW5GM2RKMHpZdVFrcXNjTjA9IiwiZXBoZW1lcmFsUHVibGljS2V5IjoiQWp6ODBmdzZtRDZYbVBDMUxYdEtUZWN2MHhFNUJ1R3FBVEtmaHNtTHhuVkEifQ==&Pgd67vpBT6/Y+2fNBt7Sxg==".getBytes(StandardCharsets.UTF_8);
final SignatureRequestData parsedData = SignatureDataParser.parseRequestData(rawData);
assertNull(parsedData);
}

}
}

0 comments on commit 379073c

Please sign in to comment.