From 5bcf62ba44c189986442a88fa2bfbe1c5777a51a Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Thu, 27 Dec 2018 10:26:28 -0500 Subject: [PATCH] Enable logging in karaf tests --- .../hapi-fhir-karaf-integration-tests/pom.xml | 20 +++++++++++++++++-- .../karaf/dstu3/Dstu3JsonParserTest.java | 5 ++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/osgi/hapi-fhir-karaf-integration-tests/pom.xml b/osgi/hapi-fhir-karaf-integration-tests/pom.xml index 3a06288d1f8..871de6ee4f9 100644 --- a/osgi/hapi-fhir-karaf-integration-tests/pom.xml +++ b/osgi/hapi-fhir-karaf-integration-tests/pom.xml @@ -97,7 +97,11 @@ hapi-fhir-validation ${project.version} - + + org.ops4j.pax.url + pax-url-aether + 2.5.4 + @@ -158,7 +162,19 @@ 1.3_1 runtime - + + + org.slf4j + jcl-over-slf4j + + + ch.qos.logback + logback-classic + true + + + + diff --git a/osgi/hapi-fhir-karaf-integration-tests/src/test/java/ca/uhn/fhir/tests/integration/karaf/dstu3/Dstu3JsonParserTest.java b/osgi/hapi-fhir-karaf-integration-tests/src/test/java/ca/uhn/fhir/tests/integration/karaf/dstu3/Dstu3JsonParserTest.java index 1253568cdbb..44e4244aac4 100644 --- a/osgi/hapi-fhir-karaf-integration-tests/src/test/java/ca/uhn/fhir/tests/integration/karaf/dstu3/Dstu3JsonParserTest.java +++ b/osgi/hapi-fhir-karaf-integration-tests/src/test/java/ca/uhn/fhir/tests/integration/karaf/dstu3/Dstu3JsonParserTest.java @@ -54,6 +54,7 @@ import org.junit.runner.RunWith; import org.ops4j.pax.exam.Configuration; import org.ops4j.pax.exam.Option; import org.ops4j.pax.exam.junit.PaxExam; +import org.ops4j.pax.exam.karaf.options.LogLevelOption; import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy; import org.ops4j.pax.exam.spi.reactors.PerClass; @@ -76,6 +77,7 @@ import static org.ops4j.pax.exam.CoreOptions.mavenBundle; import static org.ops4j.pax.exam.CoreOptions.options; import static org.ops4j.pax.exam.CoreOptions.when; import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.debugConfiguration; +import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.logLevel; /** @@ -97,7 +99,8 @@ public class Dstu3JsonParserTest { mavenBundle().groupId("org.apache.servicemix.bundles").artifactId("org.apache.servicemix.bundles.hamcrest").versionAsInProject(), when(false) .useOptions( - debugConfiguration("5005", true)) + debugConfiguration("5005", true)), + logLevel(LogLevelOption.LogLevel.DEBUG) ); }