Example #1
0
 public void testLoginSubmit() throws Exception {
   Login login = new Login();
   login.setUsername("username");
   login.setPassword("password");
   String result = login.execute();
   assertSuccess(result);
 }
Example #2
0
 // Needs access to an envinronment that includes validators
 public void FIXME_testLoginSubmitInput() throws Exception {
   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.");
 }