webwork/src/test/webwork/action/client ClientDispatcherWebTestCase.java,NONE,1.1

[email protected] Sat, 01 Nov 2003 19:39:41 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/test/webwork/action/client
In directory sc8-pr-cvs1:/tmp/cvs-serv25779/src/test/webwork/action/client

Added Files:
	ClientDispatcherWebTestCase.java 
Log Message:
Added ClientDispatcher testcase
context path should not include tests directory
Fixed a relative file mapping in views.properties
Building test-web is now separate from running tests.
To run the web testcases configure build.properties, run test-web target, deploy test-web in your container, then run ant test. To get coverage results, stop the container, then run ant clover.report


--- NEW FILE: ClientDispatcherWebTestCase.java ---
package webwork.action.client;

import webwork.view.WebSupport;
import webwork.action.Action;
import webwork.test.actions.DummyAction;

/**
 * @author Hani Suleiman ([email protected])
 * Date: Nov 1 2003
 * Time: 10:09:08 PM
 */
public class ClientDispatcherWebTestCase extends WebSupport
{
  public void testClientCall() throws Exception
  {
    ClientDispatcher dispatcher = new ClientDispatcher(TEST_HOME + "servlet/dispatch");
    ActionResult result = dispatcher.execute(new DummyAction());
    assertEquals("unexpected action result", Action.SUCCESS, result.getResult());
    assertNull("unexpected exception found", result.getException());
  }
}




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/