alle 4 Testfälle hinzugefügt

This commit is contained in:
blckxsepia 2018-11-22 16:57:24 +01:00
parent bd397d5bd1
commit 0045dce372

View File

@ -10,10 +10,28 @@ public class CredentialsTest{
public void testOne(){
Credentials c = new Credentials("", "");
assertNotNull(c);
}
}
@Test
public void testTwo(){
Credentials c = new Credentials("hofmannol", "GERONIMO");
assertTrue(c.valid());
}
@Test
public void testThree(){
Credentials c = new Credentials("hofmannolli", "GERONIMOil");
assertFalse(c.valid());
}
@Test
public void testFour(){
Credentials c = new Credentials("hofmannoll", "GERONIMOil");
assertFalse(c.valid());
}
}