using text blocks where applicable

This commit is contained in:
Sebastian Stenzel
2021-03-17 09:12:54 +01:00
parent b23d2e4def
commit f6283b2f7e
4 changed files with 34 additions and 21 deletions
@@ -48,18 +48,22 @@ class RecoveryKeyFactoryTest {
@Test
@DisplayName("validateRecoveryKey() with invalid checksum")
public void testValidateValidateRecoveryKeyWithInvalidCrc() {
boolean result = inTest.validateRecoveryKey("pathway lift abuse plenty export texture gentleman landscape beyond ceiling around leaf cafe" //
+ " charity border breakdown victory surely computer cat linger restrict infer crowd live computer true written amazed investor boot" //
+ " depth left theory snow whereby terminal weekly reject happiness circuit partial cup wrong");
boolean result = inTest.validateRecoveryKey("""
pathway lift abuse plenty export texture gentleman landscape beyond ceiling around leaf cafe charity \
border breakdown victory surely computer cat linger restrict infer crowd live computer true written amazed \
investor boot depth left theory snow whereby terminal weekly reject happiness circuit partial cup wrong \
""");
Assertions.assertFalse(result);
}
@Test
@DisplayName("validateRecoveryKey() with valid input")
public void testValidateValidateRecoveryKeyWithValidKey() {
boolean result = inTest.validateRecoveryKey("pathway lift abuse plenty export texture gentleman landscape beyond ceiling around leaf cafe" //
+ " charity border breakdown victory surely computer cat linger restrict infer crowd live computer true written amazed investor boot" //
+ " depth left theory snow whereby terminal weekly reject happiness circuit partial cup ad");
boolean result = inTest.validateRecoveryKey("""
pathway lift abuse plenty export texture gentleman landscape beyond ceiling around leaf cafe charity \
border breakdown victory surely computer cat linger restrict infer crowd live computer true written amazed \
investor boot depth left theory snow whereby terminal weekly reject happiness circuit partial cup ad \
""");
Assertions.assertTrue(result);
}