Hey guys, I am recently working with struts2.1.6. I was trying to test my action using struts2.1.6 junit-plugin. It was working fine till I started using annotation to replace XML configuration. Seem the configuration info that was generated using annotation was not loaded by my test case.
the setUp method looks like this ------------- super.setUp(); XmlConfigurationProvider c = new XmlConfigurationProvider("struts.xml"); configurationManager.addConfigurationProvider(c); configurationManager.reload(); this.userRepo = userRepo; --------------------------------- How could I tell my testcase READ configuration info that generated by annotation pls? Thanks. -- Small win by playing smart Big win by playing honest