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

test integration command: --transactional option without effect

    XMLWordPrintable

    Details

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

      Description

      The "--transactional" option for the "test integration" command doesn't seem to have an effect.

      Test script:

      project --topLevelPackage com.foo --projectName foo
      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      entity jpa --class MyEntity
      test integration --entity ~.MyEntity --transactional no
      

      Result:

      MyEntityIntegrationTest.java
      @RooIntegrationTest(entity = MyEntity.class)
      public class MyEntityIntegrationTest {
      ...
      }
      

      Expected Result:

      @RooIntegrationTest(entity = MyEntity.class, transactional=false)

      (Adding "transactional=false" to the annotation manually leads to removal of the @Transactional declaration in MyEntityIntegrationTest_Roo_IntegrationTest.aj.)

      Tested with spring-roo-1.3.0.BUILD-SNAPSHOT_20120220.090155-d9d34a2

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            birgitta.boeckeler Birgitta Boeckeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: