Announcement Announcement Module
Collapse
No announcement yet.
Roo doesn't update the test when you delete the VersionField Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo doesn't update the test when you delete the VersionField

    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);
        }

  • #2
    The problem remains in the current version: 1.2.0.RELEASE [rev 39eb957]

    Comment


    • #3
      Please log a Jira issue but please attach your project using the Roo 'backup' command.

      Comment


      • #4
        Thank you very much for the response.

        I can't attach my current project, and I tried to create a mock project for reproducing the failure, but there isn't any problem with it.

        So I consider the bug fixed and if it appears again, I will create a JIRA issue attaching some Roo project.

        Thanks again.

        Comment

        Working...
        X