mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-04 07:07:06 +00:00
Fixed independent spelling mistakes
Added @SuppressWarnings("SpellCheckingInspection") to binary data (e.g. keys) or deliberately misspelled strings
This commit is contained in:
@@ -9,6 +9,7 @@ import java.util.Optional;
|
||||
|
||||
public class LicenseCheckerTest {
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
private static final String PUBLIC_KEY = """
|
||||
MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBgc4HZz+/fBbC7lmEww0AO3NK9wVZ\
|
||||
PDZ0VEnsaUFLEYpTzb90nITtJUcPUbvOsdZIZ1Q8fnbquAYgxXL5UgHMoywAib47\
|
||||
@@ -25,6 +26,7 @@ public class LicenseCheckerTest {
|
||||
|
||||
@Test
|
||||
public void testCheckValidLicense() {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
String license = "eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6InhaRGZacHJ5NFA5dlpQWnlHMmZOQlJqLTdMejVvbVZkbTd0SG9DZ1NOZlkifQ.eyJzdWIiOiJjcnlwdG9ib3RAZXhhbXBsZS5jb20iLCJpYXQiOjE1MTYyMzkwMjJ9.AQaBIKQdNCxmRJi2wLOcbagTgi39WhdWwgdpKTYSPicg-aPr_tst_RjmnqMemx3cBe0Blr4nEbj_lAtSKHz_i61fAUyI1xCIAZYbK9Q3ICHIHQl3AiuCpBwFl-k81OB4QDYiKpEc9gLN5dhW_VymJMsgOvyiC0UjC91f2AM7s46byDNj";
|
||||
|
||||
Optional<DecodedJWT> decoded = licenseChecker.check(license);
|
||||
@@ -35,6 +37,7 @@ public class LicenseCheckerTest {
|
||||
|
||||
@Test
|
||||
public void testCheckInvalidLicenseHeader() {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
String license = "EyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6InhaRGZacHJ5NFA5dlpQWnlHMmZOQlJqLTdMejVvbVZkbTd0SG9DZ1NOZlkifQ.eyJzdWIiOiJjcnlwdG9ib3RAZXhhbXBsZS5jb20iLCJpYXQiOjE1MTYyMzkwMjJ9.AQaBIKQdNCxmRJi2wLOcbagTgi39WhdWwgdpKTYSPicg-aPr_tst_RjmnqMemx3cBe0Blr4nEbj_lAtSKHz_i61fAUyI1xCIAZYbK9Q3ICHIHQl3AiuCpBwFl-k81OB4QDYiKpEc9gLN5dhW_VymJMsgOvyiC0UjC91f2AM7s46byDNj";
|
||||
|
||||
Optional<DecodedJWT> decoded = licenseChecker.check(license);
|
||||
@@ -44,6 +47,7 @@ public class LicenseCheckerTest {
|
||||
|
||||
@Test
|
||||
public void testCheckInvalidLicensePayload() {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
String license = "eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6InhaRGZacHJ5NFA5dlpQWnlHMmZOQlJqLTdMejVvbVZkbTd0SG9DZ1NOZlkifQ.EyJzdWIiOiJjcnlwdG9ib3RAZXhhbXBsZS5jb20iLCJpYXQiOjE1MTYyMzkwMjJ9.AQaBIKQdNCxmRJi2wLOcbagTgi39WhdWwgdpKTYSPicg-aPr_tst_RjmnqMemx3cBe0Blr4nEbj_lAtSKHz_i61fAUyI1xCIAZYbK9Q3ICHIHQl3AiuCpBwFl-k81OB4QDYiKpEc9gLN5dhW_VymJMsgOvyiC0UjC91f2AM7s46byDNj";
|
||||
|
||||
Optional<DecodedJWT> decoded = licenseChecker.check(license);
|
||||
@@ -53,6 +57,7 @@ public class LicenseCheckerTest {
|
||||
|
||||
@Test
|
||||
public void testCheckInvalidLicenseSignature() {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
String license = "eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6InhaRGZacHJ5NFA5dlpQWnlHMmZOQlJqLTdMejVvbVZkbTd0SG9DZ1NOZlkifQ.eyJzdWIiOiJjcnlwdG9ib3RAZXhhbXBsZS5jb20iLCJpYXQiOjE1MTYyMzkwMjJ9.aQaBIKQdNCxmRJi2wLOcbagTgi39WhdWwgdpKTYSPicg-aPr_tst_RjmnqMemx3cBe0Blr4nEbj_lAtSKHz_i61fAUyI1xCIAZYbK9Q3ICHIHQl3AiuCpBwFl-k81OB4QDYiKpEc9gLN5dhW_VymJMsgOvyiC0UjC91f2AM7s46byDNj";
|
||||
|
||||
Optional<DecodedJWT> decoded = licenseChecker.check(license);
|
||||
|
||||
@@ -44,6 +44,7 @@ public class SettingsJsonAdapterTest {
|
||||
Assertions.assertEquals(VolumeImpl.FUSE, settings.preferredVolumeImpl().get());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@ParameterizedTest(name = "fromJson() should throw IOException for input: {0}")
|
||||
@ValueSource(strings = { //
|
||||
"", //
|
||||
|
||||
@@ -40,6 +40,7 @@ public class VaultSettingsJsonAdapterTest {
|
||||
);
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
public void testSerialize() throws IOException {
|
||||
VaultSettings vaultSettings = new VaultSettings("test");
|
||||
|
||||
@@ -24,7 +24,7 @@ public class IpcFactoryTest {
|
||||
private IpcProtocolImpl protocolHandler = Mockito.mock(IpcProtocolImpl.class);
|
||||
|
||||
@Test
|
||||
@DisplayName("Wihout IPC port files")
|
||||
@DisplayName("Without IPC port files")
|
||||
public void testNoIpcWithoutPortFile() throws IOException {
|
||||
IpcFactory inTest = new IpcFactory(environment, protocolHandler);
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import java.util.List;
|
||||
|
||||
public class ReadMeGeneratorTest {
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@ParameterizedTest
|
||||
@CsvSource({ //
|
||||
"test,test", //
|
||||
|
||||
@@ -49,6 +49,7 @@ public class SecurePasswordFieldTest {
|
||||
Assertions.assertEquals("anteater", pwField.getCharacters().toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("\"anteater\".insert(3, \"b\")")
|
||||
public void insert2() {
|
||||
@@ -76,6 +77,7 @@ public class SecurePasswordFieldTest {
|
||||
Assertions.assertEquals("ant", pwField.getCharacters().toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("\"anteater\".replace(0, 3, \"hand\")")
|
||||
public void replace1() {
|
||||
@@ -85,6 +87,7 @@ public class SecurePasswordFieldTest {
|
||||
Assertions.assertEquals("handeater", pwField.getCharacters().toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("\"anteater\".replace(3, 6, \"keep\")")
|
||||
public void replace2() {
|
||||
@@ -94,6 +97,7 @@ public class SecurePasswordFieldTest {
|
||||
Assertions.assertEquals("antkeeper", pwField.getCharacters().toString());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("\"anteater\".replace(0, 3, \"bee\")")
|
||||
public void replace3() {
|
||||
@@ -105,6 +109,7 @@ public class SecurePasswordFieldTest {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("entering NFC string leads to NFC char[]")
|
||||
public void enterNfcString() {
|
||||
@@ -125,6 +130,7 @@ public class SecurePasswordFieldTest {
|
||||
Assertions.assertEquals('\uDCA9', result.charAt(9));
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@Test
|
||||
@DisplayName("entering NFD string leads to NFC char[]")
|
||||
public void enterNfdString() {
|
||||
|
||||
@@ -43,6 +43,7 @@ public class AutoCompleterTest {
|
||||
Assertions.assertEquals("tame", result.get());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@ParameterizedTest
|
||||
@DisplayName("find 'teach'")
|
||||
@ValueSource(strings = {"te", "tea", "teac", "teach"})
|
||||
@@ -52,6 +53,7 @@ public class AutoCompleterTest {
|
||||
Assertions.assertEquals("teach", result.get());
|
||||
}
|
||||
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
@ParameterizedTest
|
||||
@DisplayName("find 'teacher'")
|
||||
@ValueSource(strings = {"teache", "teacher"})
|
||||
|
||||
Reference in New Issue
Block a user