https://github.com/bmarwell/openliberty-jpa-14457
Test case for OpenLiberty issue #14457
https://github.com/bmarwell/openliberty-jpa-14457
Last synced: 3 months ago
JSON representation
Test case for OpenLiberty issue #14457
- Host: GitHub
- URL: https://github.com/bmarwell/openliberty-jpa-14457
- Owner: bmarwell
- Created: 2020-10-13T08:42:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-13T08:47:51.000Z (over 4 years ago)
- Last Synced: 2025-04-02T01:11:09.560Z (3 months ago)
- Language: Java
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= EclipseLink ClassCast showcase
This project demonstrates via an eclipselink ClassCastException.
Demo 1:
Junit Unit test using EclipseLink and h2.Demo 2:
Junit Integration test case using OpenLiberty.== Executing the tests
`mvn clean verify`
As maven will stop after the first test failure, the integration test is not being executed.
To execute both tests, run:
`mvn clean verify -Dmaven.test.failure.ignore=true`
== Unit test
The unit test takes the existing persistence.xml and overrides some values via a property map.
The jdbc url is set to a h2 memory db.The test executed is a simple `select case … then true else false` JPQL statement.
=== Dependencies
The following dependencies were added:
* *eclipselink* +
used as an JPA implementation, which is also used by OpenLiberty.== Integration test
The integration test uses the integration test lifecycle of the openliberty maven plugin.
All *IT classes are automatically executed in this phase only.
=== Dependencies
The following dependencies were added:
* *jersey* +
A jax-rs client implementation, used to connect to the OpenLiberty instance
* *hk2* +
Jersey requires the hk2 DI library on the classpath but has no dependency on it.== Issues
* https://github.com/OpenLiberty/open-liberty/issues/14457
* TS004326991