From 2df5543498c0fa0a2ba120eec744aa4cde929199 Mon Sep 17 00:00:00 2001 From: Dinh Danh Le Date: Sun, 15 Jul 2018 02:52:33 +0100 Subject: Refactor persistence JPA testing Adding tests for EclipseLink and refactoring Hibernate testcases. As both tests use the same test entities, the two existing test entity classes from org.onap.policy.apex.plugins.persistence.jpa.hibernate are moved to a newly created package org.onap.policy.apex.context.test.entities under context-test-utils. Relevent POM files are changed w.r.t this change. In particular, 1) add version infos as properties in apex-pdp/pom.xml 2) common dependencies related to Junit testing for EclipseLink and Hibernate are moved to their parent plugins-persistence-jpa's POM. Change-Id: I9d9387154cbfdfc69be49960b80e040b6fd35b5a Signed-off-by: Dinh Danh Le Issue-ID: POLICY-862 --- .../src/test/resources/META-INF/persistence.xml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-eclipselink/src/test/resources/META-INF/persistence.xml (limited to 'plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-eclipselink/src/test/resources/META-INF/persistence.xml') diff --git a/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-eclipselink/src/test/resources/META-INF/persistence.xml b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-eclipselink/src/test/resources/META-INF/persistence.xml new file mode 100644 index 000000000..130079dd9 --- /dev/null +++ b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-eclipselink/src/test/resources/META-INF/persistence.xml @@ -0,0 +1,40 @@ + + + + + + + org.eclipse.persistence.jpa.PersistenceProvider + + org.onap.policy.apex.context.test.entities.ReferenceKeyTestEntity + org.onap.policy.apex.context.test.entities.ArtifactKeyTestEntity + + + + + + + + + + + + \ No newline at end of file -- cgit 1.2.3-korg