blob: 2c02a70bbe8d60f1703be363523a52329cdee410 [file] [log] [blame]
package ${package}.actions;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.StrutsTestCase;
public class IndexTest extends StrutsTestCase {
public void testIndex() throws Exception {
Index index = new Index();
String result = index.execute();
assertTrue("Expected a success result!", ActionSupport.SUCCESS.equals(result));
assertTrue("Expected the 'hello' action name!!", "hello".equals(index.getRedirectName()));
}
}