Software Engineering “im WiSe18"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CredentialsTest.java 641B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. import org.junit.Test;
  2. import static org.junit.Assert.*;
  3. public class CredentialsTest{
  4. @Test
  5. public void testOne(){
  6. Credentials c = new Credentials("", "");
  7. assertNotNull(c);
  8. }
  9. @Test
  10. public void testTwo(){
  11. Credentials c = new Credentials("hofmannol", "GERONIMO");
  12. assertEquals("hofmannol", c.login);
  13. }
  14. @Test
  15. public void testThree(){
  16. Credentials c = new Credentials("hofmannolli", "GERONIMOil");
  17. assertFalse(c.valid());
  18. }
  19. @Test
  20. public void testFour(){
  21. Credentials c = new Credentials("hofmannoll", "GERONIMOil");
  22. assertFalse(c.valid());
  23. }
  24. }