If there is an Entity with integration tests created and you want to avoid the version field with the annotation @RooEntity(versionField = ""), the Entity is well managed by Roo, but the tests aren't modified.
Exiting and opening the Roo shell solves the problem.
An example of code that doesn't compile:
Code:@Test public void OurClassIntegrationTest.testFlush() { ... java.lang.Integer currentVersion = obj.getVersion(); obj.flush(); org.junit.Assert.assertTrue("Version for 'OurClass' failed to increment on flush directive", (currentVersion != null && obj.getVersion() > currentVersion) || !modified); }


Reply With Quote