package cnam.cours.util; import junit.framework.TestCase; public class LoginControllerTest extends TestCase { LoginController _lc; String _defaultLogin = "login1"; String _defaultPassword = "password1"; protected void setUp() throws Exception { _lc = new LoginController(); _lc.addLogin(_defaultLogin, _defaultPassword); } public void testLoginExistant() { boolean b = _lc.isValidLogin(_defaultLogin); assertTrue("should be valid", b); } // TODO testisValidLoginPassword, testmodifyPassword // TODO testAddNullLogin, testAddNullPassword, testAddAlreadyAddedLogin // TODO testAddEmptyLogin, testAddTooShortLogin }