mirror of
https://github.com/apache/struts.git
synced 2026-08-18 21:17:02 +00:00
WW-1340 Add "tutorial" module to blank, corresponding with "Bootstrap" tutorial in documentation.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@440388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package tutorial;
|
||||
|
||||
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()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user