...
Struts Actions using Spring
Make sure to add a dependency to the Spring Plugin to your pom.xml
:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>STRUTS_VERSION</version>
</dependency>
|
If you use Spring as the object factory, the StrutsSpringTestCase
class can be used to write your JUnits. This class extends StrutsTestCase
and has a applicationContext
field of type ApplicationContext
.
...