I\'m trying to write a JUnit test for a Spring Roo project. If my test requires use of the entity classes, I get the following Exception:
java.lang.IllegalS
ponzao is correct. I am able to have all the spring injection magic by having my test class extend AbstractJunit4SpringContextTests.
e.g.
@ContextConfiguration(locations = { "/META-INF/spring/applicationContext.xml" }) public class SelfRegistrationTest extends AbstractJUnit4SpringContextTests {