blob: 91c508ea3071ca607a3cc47e06df84ad7008ce40 [file] [log] [blame]
package ${package}.actions;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.StrutsTestCase;
public class HelloActionTest extends StrutsTestCase {
public void testHelloAction() throws Exception {
HelloAction hello = new HelloAction();
String result = hello.execute();
assertTrue("Expected a success result!",
ActionSupport.SUCCESS.equals(result));
assertTrue("Expected the default message!",
hello.getText(HelloAction.MESSAGE).equals(hello.getMessage()));
}
}