|
|
@ -45,12 +45,13 @@ class MyTest { |
|
|
|
assertNotEquals("-" + 4321.0 + "€", MeinGui.setExpensesView()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testSetBenutzername() { |
|
|
|
String result = String.valueOf(LoginFrame.benutzername); |
|
|
|
assertEquals(result, LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(null, LoginFrame.setBenutzername()); |
|
|
|
assertEquals(result, LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(null, LoginFrame.setBenutzername()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -58,8 +59,8 @@ class MyTest { |
|
|
|
public void testSetPassword() { |
|
|
|
String result = String.valueOf(LoginFrame.passwordField); |
|
|
|
assertEquals(result, LoginFrame.setPassword()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setPassword()); |
|
|
|
assertNotEquals(null, LoginFrame.setPassword()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setPassword()); |
|
|
|
assertNotEquals(null, LoginFrame.setPassword()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|