FileDocCategorySizeDatePackage
HelloWorldTest.javaAPI DocExample1464Mon Jul 23 13:25:38 BST 2007example

HelloWorldTest

public class HelloWorldTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestHelloWorld()

        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()));