|
|
@ -49,6 +49,18 @@ class MyTest { |
|
|
|
public void testSetBenutzername() { |
|
|
|
String result = String.valueOf(LoginFrame.benutzername); |
|
|
|
assertEquals(result, LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(null, LoginFrame.setBenutzername()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testSetPassword() { |
|
|
|
String result = String.valueOf(LoginFrame.passwordField); |
|
|
|
assertEquals(result, LoginFrame.setPassword()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setPassword()); |
|
|
|
assertNotEquals(null, LoginFrame.setPassword()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |