From 3da4ad280bda3d89d3041ad670cefb3525a00cd8 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Wed, 24 Jun 2020 20:00:52 -0700 Subject: [PATCH] undoes merge issues --- hapi-fhir-jpaserver-base/pom.xml | 5 ----- .../src/test/resources/logback-test.xml | 21 ------------------- .../ca/uhn/fhir/jpa/config/TestJpaConfig.java | 3 ++- .../ca/uhn/fhir/jpa/test/BaseJpaR4Test.java | 5 ++++- 4 files changed, 6 insertions(+), 28 deletions(-) diff --git a/hapi-fhir-jpaserver-base/pom.xml b/hapi-fhir-jpaserver-base/pom.xml index 122787b5c9a..cf98a02b985 100644 --- a/hapi-fhir-jpaserver-base/pom.xml +++ b/hapi-fhir-jpaserver-base/pom.xml @@ -610,11 +610,6 @@ org.jetbrains annotations - - ca.uhn.hapi.fhir - hapi-fhir-jpaserver-batch - ${project.version} - diff --git a/hapi-fhir-jpaserver-empi/src/test/resources/logback-test.xml b/hapi-fhir-jpaserver-empi/src/test/resources/logback-test.xml index 9049ee91611..42a6bc8a7b1 100644 --- a/hapi-fhir-jpaserver-empi/src/test/resources/logback-test.xml +++ b/hapi-fhir-jpaserver-empi/src/test/resources/logback-test.xml @@ -72,27 +72,6 @@ - - - DEBUG - ${smile.basedir}/log/batch-troubleshooting.log - - ${smile.basedir}/log/batch-troubleshooting.log.%i.gz - 1 - 9 - - - 5MB - - - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n${log.stackfilter.pattern} - - - - - diff --git a/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/config/TestJpaConfig.java b/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/config/TestJpaConfig.java index 4b4514d9b4d..8f987262fa5 100644 --- a/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/config/TestJpaConfig.java +++ b/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/config/TestJpaConfig.java @@ -27,6 +27,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.orm.jpa.JpaTransactionManager; +import org.springframework.transaction.PlatformTransactionManager; import javax.persistence.EntityManagerFactory; @@ -45,7 +46,7 @@ public class TestJpaConfig { @Bean @Primary - public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { + public PlatformTransactionManager hapiTransactionManager(EntityManagerFactory entityManagerFactory) { JpaTransactionManager retVal = new JpaTransactionManager(); retVal.setEntityManagerFactory(entityManagerFactory); return retVal; diff --git a/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/test/BaseJpaR4Test.java b/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/test/BaseJpaR4Test.java index d7bfea05471..f73b97b58e9 100644 --- a/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/test/BaseJpaR4Test.java +++ b/hapi-fhir-jpaserver-test-utilities/src/main/java/ca/uhn/fhir/jpa/test/BaseJpaR4Test.java @@ -20,6 +20,9 @@ package ca.uhn.fhir.jpa.test; * #L% */ -public abstract class BaseJpaR4Test extends BaseJpaTest { +import ca.uhn.fhir.jpa.config.TestJpaR4Config; +import org.springframework.test.context.ContextConfiguration; +@ContextConfiguration(classes = {TestJpaR4Config.class}) +public abstract class BaseJpaR4Test extends BaseJpaTest { }