mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
8c36b9a3be
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@440415 13f79535-47bb-0310-9956-ffa450edef68
23 lines
711 B
Java
23 lines
711 B
Java
package example;
|
|
|
|
import com.opensymphony.xwork2.ActionSupport;
|
|
import com.opensymphony.xwork2.config.entities.ActionConfig;
|
|
|
|
public class LoginTest extends ConfigTest {
|
|
|
|
public void FIXME_testLoginConfig() throws Exception {
|
|
ActionConfig config = assertClass("Login", "tutorial.Login");
|
|
assertResult(config, ActionSupport.SUCCESS, "Menu");
|
|
assertResult(config, ActionSupport.INPUT, "/tutorial/Login.jsp");
|
|
}
|
|
|
|
public void testLoginSubmit() throws Exception {
|
|
Login login = new Login();
|
|
login.setUsername("username");
|
|
login.setPassword("password");
|
|
String result = login.execute();
|
|
AssertSuccess(result);
|
|
}
|
|
|
|
}
|