Merge branch 'develop' into feature/663-refactored-launcher

This commit is contained in:
Sebastian Stenzel
2019-02-28 20:20:58 +01:00
35 changed files with 318 additions and 219 deletions
@@ -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());
}
}