mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-21 22:56:01 +00:00
Merge branch 'develop' into feature/663-refactored-launcher
This commit is contained in:
@@ -150,7 +150,7 @@ class SecPasswordFieldTest {
|
||||
|
||||
@Test
|
||||
@DisplayName("test swipe char[]")
|
||||
public void swipe() {
|
||||
public void testSwipe() {
|
||||
pwField.appendText("topSecret");
|
||||
|
||||
CharSequence result1 = pwField.getCharacters();
|
||||
@@ -161,4 +161,17 @@ class SecPasswordFieldTest {
|
||||
Assertions.assertEquals("", result2.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("test control characters")
|
||||
public void testControlCharacters() {
|
||||
pwField.appendText("normal");
|
||||
Assertions.assertFalse(pwField.containsNonPrintableCharacters());
|
||||
|
||||
pwField.appendText("\00\01\02");
|
||||
Assertions.assertTrue(pwField.containsNonPrintableCharacters());
|
||||
|
||||
CharSequence result1 = pwField.getCharacters();
|
||||
Assertions.assertEquals("normal\00\01\02", result1.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user