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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/src/test/resources') diff --git a/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/src/test/resources/META-INF/persistence.xml b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/src/test/resources/META-INF/persistence.xml index a40e0d9fe..ee38e0096 100644 --- a/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/src/test/resources/META-INF/persistence.xml +++ b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/src/test/resources/META-INF/persistence.xml @@ -1,7 +1,7 @@ - + org.hibernate.jpa.HibernatePersistenceProvider - org.onap.policy.apex.plugins.persistence.jpa.hibernate.ReferenceKeyTestEntity - org.onap.policy.apex.plugins.persistence.jpa.hibernate.ArtifactKeyTestEntity + 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