THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
assertEquals("Result returned form executing the action was not success but it should have been.", "success", result);
Testing a Struts action against a custom Struts configuration file
Override getConfigPath
method to return a comma separated list of paths to a configuration file.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@Override
protected String getConfigPath() {
return "struts-test.xml";
}
|
Testing A Struts Action When Using Spring
...