[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-4402) DBUnitSeamTest assumes @BeforeClass methods run in certain order

Christian Bauer (JIRA) jira-events at lists.jboss.org
Thu Sep 3 01:36:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Bauer closed JBSEAM-4402.
-----------------------------------

    Fix Version/s: 2.2.1.CR1
       Resolution: Done


Backwards compatible solution was to move the preparation of the datasets into the @BeforeMethod call (with a have-we-prepared-for-this-class-already check) so that all @BeforeClass execute before.



> DBUnitSeamTest assumes @BeforeClass methods run in certain order
> ----------------------------------------------------------------
>
>                 Key: JBSEAM-4402
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4402
>             Project: Seam
>          Issue Type: Bug
>          Components: Test Harness
>            Reporter: Christian Bauer
>            Assignee: Christian Bauer
>            Priority: Minor
>             Fix For: 2.2.1.CR1
>
>
> The @BeforeClass methods such as setDatabase() and setDatasourceJndiName() have to be called before the @BeforeClass method setupClass() which needs the configuration settings to prepare the datasets. This is not guaranteed by TestNG and we don't want to introduce dependsOnMethod which would complicate subclassing and extension of the configuraiton options.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list