Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2840

Integration test ITD not updated when entity's plural changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: TESTING
    • Labels:
      None

      Description

      To replicate:

      1. Run the vote.roo script
      2. Using a text editor or IDE, add the class-level annotation @RooPlural("Things") to Vote.java; Roo correctly updates these files:
        Updated SRC_MAIN_JAVA/com/springsource/vote/web/VoteController_Roo_Controller.aj
        Updated SRC_MAIN_JAVA/com/springsource/vote/domain/Vote_Roo_Entity.aj
        Updated SRC_MAIN_WEBAPP/WEB-INF/views/votes/list.jspx
      3. Restart the Roo shell; only now does Roo update the integration test ITD:
        Updated SRC_TEST_JAVA/com/springsource/vote/domain/VoteIntegrationTest_Roo_IntegrationTest.aj

      Likewise, if you delete that annotation to restore the default pluralisation, the same ITD is not updated until you restart the Roo shell.

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: