Announcement Announcement Module
Collapse
No announcement yet.
"Test" in entity names Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Test" in entity names

    Hi,

    I'm just trying out Roo by building a small app for managing (manual) test cases. Unfortunately, Roo seems to reject all entity names that have "test" in their names, regardless in which package they are. This is pretty restricitive (try finding another appropriate naming for "TestCase", "TestPlan" etc...) Is there any way out of this?

    Thanks ,
    Hauke

  • #2
    TeztCase?

    Comment


    • #3
      When you say Roo is rejecting them, can you please elaborate (perhaps by sharing the commands you're typing and/or the messages Roo is giving)?

      Comment


      • #4
        roo>
        entity --class ~.model.TestCase
        Entity name rejected as conflicts with test execution defaults; please remove 'Test' and/or 'TestCase'

        Comment


        • #5
          Roo has a list of reserved words it checks against. There are a number of SQL related keywords which are on that list for obvious reasons but also a number of reserved words in Java. Test is part of that list to prevent clashes with unit testing frameworks such as JUnit.

          You can usually switch off this checking if you are confident that your specific keyword will not clash anywhere by using the --permitReservedWords attribute:

          Code:
          ~.TestCase roo> entity --class ~.TestCase --permitReservedWords
          Entity name rejected as conflicts with test execution defaults; please remove 'Test' and/or 'TestCase'
          As you can see it is still rejected, so it would be good if you could open a Jira ticket so we can look into this.

          Cheers,
          Stefan

          Comment

          Working...
          X