[ 
https://issues.apache.org/jira/browse/OFBIZ-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695704#action_12695704
 ] 

Scott Gray commented on OFBIZ-2259:
-----------------------------------

Hi Jacopo

I think it is possible but we couldn't use the new data in regular demo data 
files due to any updates performed that could break existing unit tests.  We 
could definitely use the generated data within test suites though:
    <test-case case-name="load-service-test-data">
        <entity-xml action="load" 
entity-xml-url="component://service/testdef/data/ServiceTestData.xml"/>
    </test-case>
Sounds pretty cool and should be fairly easy to implement, I'll add it to my 
todo list :-)




> Testing - Rollback database changes after each test-suite using the 
> GenericDelegator
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2259
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2259
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>            Reporter: Scott Gray
>            Assignee: Scott Gray
>         Attachments: rollback.patch
>
>
> During testing have the delegator keep track of all changes made to the 
> database and then roll them back at the end of each test suite.  This will 
> allow the same demo data to be reused across test suites without having to 
> worry about what changes previous tests have made to the data and solves this 
> problem regardless of the database being used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to