Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18463

(7.2.z) WFLY-12964 - org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.7.CR1, 7.2.7.GA
    • None
    • Test Suite
    • None
    • +
    • Hide

      Run org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase.

      Show
      Run org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase .

      The following fixes in Hibernate ORM 5.3.15.Final cause org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase to fail:

      https://hibernate.atlassian.net/browse/HHH-13432
      https://hibernate.atlassian.net/browse/HHH-12858

      There are 2 assertions in the test that fail with those fixes because the Map returned by EntityManagerFactory#getProperties:
      1) does not contain a value for property hibernate.connection.driver_class.
      2) contains a property for hibernate.connection.datasource that is a WildFlyDataSource instance, instead of the String "java:jboss/datasources/ExampleDS".

      For 1), Hibernate ORM removes the hibernate.connection.driver_class property from its copy because it makes no sense when a datasource is provided via hibernate.connection.datasource.

      For 2), Hibernate ORM replaces the String value for hibernate.connection.datasource with the WildFlyDataSource instance.

      I reviewed the JPA 2.2 specification and discussed this issue with smarlow@redhat.com, and we agreed that these were acceptable changes to the copy of properties that Hibernate ORM contains.

      I have confirmed that these fixes do not cause any Jakarta standalone TCK failures.

      The fix will involve replacing references to those properties with properties that Hibernate ORM does not change.

            rhn-support-ivassile Ilia Vassilev
            rhn-support-ivassile Ilia Vassilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: