From f7dce8cb1dc1e99876bc3a760f4605d461a9d864 Mon Sep 17 00:00:00 2001 From: "Francisco M. Aramburo Torres" Date: Thu, 5 Mar 2020 16:48:26 +0100 Subject: [PATCH] added logback back to the tests for controlling logs --- build.sbt | 10 +++++++--- project/Dependencies.scala | 2 +- .../com/ing/baker/runtime/akka/BakerInquireSpec.scala | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index cd334520..f6389e64 100644 --- a/build.sbt +++ b/build.sbt @@ -297,6 +297,7 @@ lazy val `baas-node-state` = project.in(file("baas-node-state")) ) ++ testDeps( slf4jApi, slf4jSimple, + logback, scalaTest, mockServer, circe, @@ -330,7 +331,8 @@ lazy val `baas-node-interaction` = project.in(file("baas-node-interaction")) http4sDsl, http4sServer ) ++ testDeps( - scalaTest + scalaTest, + logback ) ) .dependsOn(`baas-protocol-interaction-scheduling`, `baker-interface`) @@ -346,7 +348,8 @@ lazy val `baas-node-event-listener` = project.in(file("baas-node-event-listener" http4sDsl, http4sServer ) ++ testDeps( - scalaTest + scalaTest, + logback )) .dependsOn(`baas-protocol-recipe-event-publishing`, `baker-interface`) @@ -361,7 +364,8 @@ lazy val `baas-node-baker-event-listener` = project.in(file("baas-node-baker-eve http4sDsl, http4sServer ) ++ testDeps( - scalaTest + scalaTest, + logback ) ) .dependsOn(`baas-protocol-baker-event-publishing`, `baker-interface`) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 1b1b5501..57c61560 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -88,8 +88,8 @@ object Dependencies { val objenisis = "org.objenesis" % "objenesis" % "3.1" val jodaTime = "joda-time" % "joda-time" % "2.10.5" val slf4jApi = "org.slf4j" % "slf4j-api" % "1.7.30" - val slf4jSimple = "org.slf4j" % "slf4j-simple" % "1.7.30" + val logback = "ch.qos.logback" % "logback-classic" % "1.2.3" val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.13.5" val scalaLogging = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.2" diff --git a/runtime/src/test/scala/com/ing/baker/runtime/akka/BakerInquireSpec.scala b/runtime/src/test/scala/com/ing/baker/runtime/akka/BakerInquireSpec.scala index 5d1f4be4..122e47f4 100644 --- a/runtime/src/test/scala/com/ing/baker/runtime/akka/BakerInquireSpec.scala +++ b/runtime/src/test/scala/com/ing/baker/runtime/akka/BakerInquireSpec.scala @@ -45,7 +45,6 @@ class BakerInquireSpec extends BakerRuntimeTestBase { for { (baker, recipeId) <- setupBakerWithRecipe("returnHealthRecipe", false) recipeInformation <- baker.getRecipe(recipeId) - _ = println(recipeInformation) _ = assert(recipeInformation.compiledRecipe.recipeId == recipeId && recipeInformation.errors.isEmpty) } yield succeed }