Details
-
Bug
-
Resolution: Done
-
Critical
-
5.1.0.M1
-
None
-
Low
Description
This bug occurs when drools-persistence-jpa module is running out of JUnit test.
Quick description:
org.drools.persistence.session.MyEntity is defined in src/test/java(test scope), persistence.xml in src/main/resources(production scope) and therefore drools-persistence-jpa module is not usable except for JUnit tests. The solution is to have another persistence.xml (with org.drools.persistence.session.MyEntity definition) in src/test/resources for JUnit tests.
I propose to create integration Junit tests to cover such production/test configuration bugs.