FileDocCategorySizeDatePackage
LoginTest.javaAPI DocExample2078Mon Jul 23 13:25:38 BST 2007example

LoginTest

public class LoginTest extends ConfigTest

Fields Summary
Constructors Summary
Methods Summary
public voidFIXME_testLoginConfig()

        ActionConfig config = assertClass("example", "Login_input", "example.Login");
        assertResult(config, ActionSupport.SUCCESS, "Menu");
        assertResult(config, ActionSupport.INPUT, "/example/Login.jsp");
    
public voidFIXME_testLoginSubmitInput()

        Login login = new Login();
        String result = login.execute();
        assertInput(result);
        Map errors = assertFieldErrors(login);
        assertFieldError(errors,"username","Username is required.");
        assertFieldError(errors,"password","Password is required.");
    
public voidtestLoginSubmit()

        Login login = new Login();
        login.setUsername("username");
        login.setPassword("password");
        String result = login.execute();
        assertSuccess(result);