Announcement Announcement Module
Collapse
No announcement yet.
how to get default aspectj tests to test against mysql? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to get default aspectj tests to test against mysql?

    Goal: to get roo generated aspectj integration tests to test against a mysql db.

    Steps:
    1. create a roo project with the roo shell with one entity class with one field. Using hibnerate/mysql. No controller generated
    2. added sql logging in the log4j.properties
    3. perform tests (in roo shell)
    4. all aspectj generated tests pass.
    5. No sql statements logged and mysql db was not updated
    6. changed persistence.xml key hibernate.hbm2ddl.auto to "update"
    7. override testRemove() to an empty test
    8. Same as #5.

    question: How could the aspectJ integration tests pass without actually updating the database? Did I miss something very obvious?

    Thx!
Working...
X