|
@ -61,16 +61,19 @@ class MyTest { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void testSetPassword() { |
|
|
public void testSetPassword() { |
|
|
String result = String.valueOf(LoginFrame.passwordField); |
|
|
|
|
|
assertEquals(result, LoginFrame.setPassword()); |
|
|
|
|
|
assertNotEquals(result + " ", LoginFrame.setPassword()); |
|
|
|
|
|
assertNotEquals(null, LoginFrame.setPassword()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertEquals("password", LoginFrame.setBenutzername("password")); |
|
|
|
|
|
assertEquals("PassWord", LoginFrame.setBenutzername("PassWord")); |
|
|
|
|
|
assertNotEquals("password", LoginFrame.setBenutzername("")); |
|
|
|
|
|
assertNotEquals("PASSWORD", LoginFrame.setBenutzername("password")); |
|
|
|
|
|
assertNotEquals("", LoginFrame.setBenutzername("password")); |
|
|
|
|
|
assertEquals("PaSSwOrd".toUpperCase(), LoginFrame.setBenutzername("passwoRd").toUpperCase()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void testSetLeeren() { |
|
|
public void testSetLeeren() { |
|
|
|
|
|
|
|
|