diff options
author | efiacor <fiachra.corcoran@est.tech> | 2019-07-23 16:22:03 +0000 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2019-07-23 16:22:03 +0000 |
commit | f20778ffa99aa9c6f30a0f84112a5392b259ea63 (patch) | |
tree | 7c58a50f8b327a5f7f9580dbfb97fe24532ed777 /datarouter-prov/src/test/resources/META-INF | |
parent | d6302cb0b3db8043598e8b6bc3dc5ed436f848cb (diff) |
More unit test coverage and code cleanup
Change-Id: Ie28b50803c60cc79221a5c8aa08cf029f7a8486c
Issue-ID: DMAAP-1226
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Diffstat (limited to 'datarouter-prov/src/test/resources/META-INF')
-rwxr-xr-x | datarouter-prov/src/test/resources/META-INF/persistence.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/datarouter-prov/src/test/resources/META-INF/persistence.xml b/datarouter-prov/src/test/resources/META-INF/persistence.xml index 83813e23..2cb798af 100755 --- a/datarouter-prov/src/test/resources/META-INF/persistence.xml +++ b/datarouter-prov/src/test/resources/META-INF/persistence.xml @@ -18,4 +18,18 @@ </properties> </persistence-unit> + <persistence-unit name="db-unit-tests" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> + <properties> + <!-- Configuring JDBC properties --> + <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test1;DB_CLOSE_DELAY=-1"/> + <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/> + <!-- Hibernate properties --> + <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> + <property name="hibernate.hbm2ddl.auto" value="create-drop"/> + <property name="hibernate.format_sql" value="false"/> + <property name="hibernate.show_sql" value="true"/> + + </properties> + </persistence-unit> </persistence> |