|
|
@ -45,22 +45,23 @@ class MyTest { |
|
|
|
assertNotEquals("-" + 4321.0 + "€", MeinGui.setExpensesView()); |
|
|
|
|
|
|
|
} |
|
|
|
@Test |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testSetBenutzername() { |
|
|
|
String result = String.valueOf(LoginFrame.benutzername); |
|
|
|
assertEquals(result, LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setBenutzername()); |
|
|
|
assertNotEquals(null, LoginFrame.setBenutzername()); |
|
|
|
|
|
|
|
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()); |
|
|
|
|
|
|
|
assertEquals(result, LoginFrame.setPassword()); |
|
|
|
assertNotEquals(result + " ", LoginFrame.setPassword()); |
|
|
|
assertNotEquals(null, LoginFrame.setPassword()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |