[ 
https://issues.apache.org/jira/browse/CAMEL-24615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18111844#comment-18111844
 ] 

Claus Ibsen commented on CAMEL-24615:
-------------------------------------

Fixed in PR https://github.com/apache/camel/pull/26074 (merged to main/4.23.0).

> camel-jpa - hibernate test profile is not runnable and has failing tests
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-24615
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24615
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jpa
>            Reporter: Jiří Ondrušek
>            Assignee: Jiří Ondrušek
>            Priority: Minor
>             Fix For: 4.23.0
>
>
> The hibernate test profile has been broken since ~2023 (found via 
> CAMEL-24604): the OpenJPA -javaagent is attached unconditionally but its jar 
> is only copied by the openjpa profile (forked JVM crashes with -Dhibernate), 
> the hibernate persistence.xml copy can be overwritten by the default 
> testResources copy, and the keyvalueDb unit is missing (CAMEL-24463).
> Once made bootable, 7 tests fail on current main: 6x 
> testProducerInsertsIntoDatabaseThenConsumerFiresMessageExchange in the 
> JpaWith*Query* tests (entity update not visible on re-read, e.g. expected 
> <[email protected]> but was <cheese>) and 
> JpaProducerWithQueryTest.testProducerWithNativeQuery (expected <1> but was 
> <null>) - OpenJPA vs Hibernate behavioral differences.
> {noformat}
> cd components/camel-jpa
> mvn clean test -Dhibernate
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to