Results 1 to 4 of 4

Thread: Roo doesn't update the test when you delete the VersionField

  1. #1
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default 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. #2
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

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

  3. #3
    Join Date
    Dec 2005
    Posts
    929

    Default

    Please log a Jira issue but please attach your project using the Roo 'backup' command.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  4. #4
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •