[hibernate-issues] [Hibernate-JIRA] Resolved: (EJB-418) JBPAPP-1787 - Implement tearDown in EJB3TestCase

Juraci Paixao Krohling (JIRA) noreply at atlassian.com
Tue Apr 21 09:17:17 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juraci Paixao Krohling resolved EJB-418.
----------------------------------------

    Resolution: Fixed

Fixed in trunk (revision 16377), v3_3_2_GA_CP (16376) and v3_4_0_GA_CP (16375).

> JBPAPP-1787 - Implement tearDown in EJB3TestCase
> ------------------------------------------------
>
>                 Key: EJB-418
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-418
>             Project: Hibernate Entity Manager
>          Issue Type: Bug
>          Components: EntityManager
>         Environment: Any database using the tests PersistTest and XmlAttributeOverrideTest. 
>            Reporter: Juraci Paixao Krohling
>            Assignee: Juraci Paixao Krohling
>         Attachments: EJB3TestCase.java.2.diff, EJB3TestCase.java.diff
>
>
> https://jira.jboss.org/jira/browse/JBPAPP-1787
> There are some tests in EM test suite which subclasses EJB3TestCase (all of them in the package org.hibernate.ejb.test.ops), while most of the other tests subclasses org.hibernate.ejb.test.TestCase.
> Tests subclassing EJB3TestCase are not having its tables dropped after the execution, causing failures in other tests which uses the same table names with different table definitions.
> How to reproduce:
> - Drop all tables from the database to be used in the test
> - Run org.hibernate.ejb.test.ops.PersistTest#testBasic
> - There should be, among others, three tables: employer_employee,employer,employee
> - Run org.hibernate.ejb.test.xml.XmlAttributeOverrideTest#testAttributeOverriding
> - It should fail to drop the table "employee" (check the logs), failing with "java.sql.BatchUpdateException: Unknown column 'home_city' in 'field list'"
> - Drop all tables from the database
> - Run org.hibernate.ejb.test.xml.XmlAttributeOverrideTest#testAttributeOverriding again
> - There should be no failures. 

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

        



More information about the hibernate-issues mailing list