Results 1 to 3 of 3

Thread: How to update integration tests after manual changes to entity

  1. #1

    Question How to update integration tests after manual changes to entity

    Hi all,

    I created two entites with --testautomatically flag and everything was fine.
    Now I manually updated the relationships beteween the two and saved it.

    The integration tests were not updated to the new relationship-type namely the dataondemand remained the same and threw an execption.

    Is there a way to regenerate the integration-tests for my entities?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Roo should detect the changes in your domain model and adjust these changes in your data on demand classes. Are you sure you have the Roo shell running in the background to monitor your project? You can also start the shell after your changes, as long as it is done at some stage.

    If the Roo shell was running and the changes are not reflected correctly, would you please log a bug report (with the script and exact steps you have taken) so we can fix it for the next release?

    Cheers,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Also you could try typing "development mode", hitting ENTER, then changing one or both of the entity .java files. If something is wrong, you'll see the exception stack trace and can include that in a bug report.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Tags for this Thread

Posting Permissions

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