[ 
https://issues.apache.org/jira/browse/TUSCANY-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596784#action_12596784
 ] 

Mark Combellack commented on TUSCANY-2297:
------------------------------------------

Looking into it in more detail, the problem is that this patch introduces a new 
test case called DATACollectionTestCase that is a duplicate of DataTestCase. 
The problem is that these two test cases will not run one after the other.

What happens is:

1) Initially, the test data is loaded into the database by the Maven build 
script.
2) The DATACollectionTestCase runs which will delete the data from the database 
in the testDelete() test case.
3) The DataTestCase now runs. However, it will fail since the data has already 
been deleted by DATACollectionTestCase



I notice that in both JUnit test classes, the testDelete() suggests that it 
re-creates the database:

        System.out.println("recreating database...");
        //Helper.createDB();
        System.out.println("done!");

However, the above code is not going to restore the database.

> Add support for data Collection interface to the implementation-data-xml
> ------------------------------------------------------------------------
>
>                 Key: TUSCANY-2297
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2297
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Java Implementation Extension
>            Reporter: Douglas Siqueira Leite
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-Next
>
>         Attachments: DATAInvoker.java, tuscany2297_douglas_2008_05_06.patch
>
>
> Add support for data Collection interface from implementation-data to the 
> implementation-data-xml module

-- 
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