style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -10,29 +10,29 @@ class BlowfishTest {
@Test
void testEncrypt() {
//given
// given
String plainText = "123456abcd132536";
String key = "aabb09182736ccdd";
String expectedOutput = "d748ec383d3405f7";
//when
// when
String cipherText = blowfish.encrypt(plainText, key);
//then
// then
assertEquals(expectedOutput, cipherText);
}
@Test
void testDecrypt() {
//given
// given
String cipherText = "d748ec383d3405f7";
String key = "aabb09182736ccdd";
String expectedOutput = "123456abcd132536";
//when
// when
String plainText = blowfish.decrypt(cipherText, key);
//then
// then
assertEquals(expectedOutput, plainText);
}
}