MentaTutorials

Compare Revisions

Ignore whitespace Rev 24 → Rev 25

/MentaRefAppWithService/trunk/src/test/java/org/menta/action/LoginActionTest.java
38,13 → 38,8
 
String result, errorId;
User user = new User();
// test wrong password...
input.setValue("username", "testUser");
input.setValue("password", "wrong_pass");
input.inject(user);
result = login.execute(user);
result = login.execute("testUser", "wrong_pass");
errorId = login.getError("username");
52,11 → 47,8
Assert.assertEquals(Type.WRONG_PASSWORD.toString(), errorId);
// test success...
result = login.execute("testUser", "abc123");
input.setValue("password", "abc123");
input.inject(user);
result = login.execute(user);
Assert.assertEquals(SUCCESS, result);
}