|
12345678910111213141516171819202122232425262728293031323334353637 |
- import org.junit.Test;
- import static org.junit.Assert.*;
-
-
- public class CredentialsTest{
-
-
-
- @Test
- 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());
- }
-
-
- }
|