diff options
author | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-07-15 02:52:33 +0100 |
---|---|---|
committer | Dinh Danh Le <dinh.danh.le@ericsson.com> | 2018-07-16 14:07:50 +0100 |
commit | 2df5543498c0fa0a2ba120eec744aa4cde929199 (patch) | |
tree | 2db4f026911e3a60d06ab468c2c041e1d7ff4672 /plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml | |
parent | 08b595c863b45e759e57ef419c83dad2b209df9c (diff) |
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 <dinh.danh.le@ericsson.com>
Issue-ID: POLICY-862
Diffstat (limited to 'plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml')
-rw-r--r-- | plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml index f20a06c1f..c219b733c 100644 --- a/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml +++ b/plugins/plugins-persistence/plugins-persistence-jpa/plugins-persistence-jpa-hibernate/pom.xml @@ -30,15 +30,11 @@ <name>${project.artifactId}</name> <description>[${project.parent.artifactId}] Plugin for persistence using Hibernate</description> - <properties> - <hibernate.version>5.3.1.Final</hibernate.version> - </properties> - <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> - <version>${hibernate.version}</version> + <version>${version.hibernate}</version> <exclusions> <exclusion> <groupId>dom4j</groupId> @@ -49,17 +45,7 @@ <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-c3p0</artifactId> - <version>${hibernate.version}</version> - </dependency> - <dependency> - <groupId>com.h2database</groupId> - <artifactId>h2</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>dom4j</groupId> - <artifactId>dom4j</artifactId> - <version>1.6</version> + <version>${version.hibernate}</version> </dependency> </dependencies> </project>
\ No newline at end of file |