Results 1 to 4 of 4

Thread: Hooking into Roo Integration Tests

  1. #1
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    97

    Default Hooking into Roo Integration Tests

    In the same vein as Scaffolded Controllers and Manual controllers, I would like to see Roo generate 'manual' integration tests.

    This will let me fast track work on a number of things, of which the most important on would be custom JPA queries.

    If Roo could generate stub classes/aspects where I can:
    • Define specific test data (like DoD, but with more sensible values that are pertinent to the application domain).
    • A stub integration test class, with the work done for data setup, that would be great


    Good idea?

  2. #2

    Default

    There's a jira ticket open for improve test generation facilities. Maybe your suggest could fit or expand it??

    https://jira.springsource.org/browse/ROO-132

    HTH

  3. #3
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    97

    Default

    Mm, kinda sorta... I'm more interested in a stub text fixture that lets me do most the work, rather than telling Roo how to do it's thing.

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

    Default

    You can already provide a getNewTransientChoice(int) in your DataOnDemand classes and in doing so provide your own seed data. You can also use a command like "class --class com.foo.Bar --path SRC_TEST_JAVA" to create a new empty test class.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

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