mirror of
https://github.com/apache/struts.git
synced 2026-08-11 17:46:57 +00:00
b0413aa7d4
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_0_1@462588 13f79535-47bb-0310-9956-ffa450edef68
17 lines
551 B
Java
17 lines
551 B
Java
package example;
|
|
|
|
import com.opensymphony.xwork2.ActionSupport;
|
|
import junit.framework.TestCase;
|
|
|
|
public class HelloWorldTest extends TestCase {
|
|
|
|
public void testHelloWorld() throws Exception {
|
|
HelloWorld hello_world = new HelloWorld();
|
|
String result = hello_world.execute();
|
|
assertTrue("Expected a success result!",
|
|
ActionSupport.SUCCESS.equals(result));
|
|
assertTrue("Expected the default message!",
|
|
hello_world.getText(HelloWorld.MESSAGE).equals(hello_world.getMessage()));
|
|
}
|
|
}
|