Announcement Announcement Module
No announcement yet.
Spring initialization for unit testing Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring initialization for unit testing

    I'm trying to run unit tests within Agitator which already contains a number of auto-mock capabilities (JNDI, database, servlet). I'm trying to initialize enough of the Spring framework to where Agitator can run with it.
    I'm working with the jpetstore application and I've tried to write a setup method such as:

    public class SpringHelper extends AbstractDependencyInjectionSpringContextTests {
    protected String[] getConfigLocations() {
    return new String[] { "file:war/WEB-INF/applicationContext*.xml",

    public static void SpringSetup() {
    try {
    new SpringHelper().setUp();
    } catch (Exception e) {

    But this does not seem to read in the ibatis maps. When testing the DAO classes it says there is "no statement named 'getOrder'" or the like.

    How can I get this information loaded?

    Joel Patterson