From fef374dddca9446d6a65ef7f199db5e58e6988b4 Mon Sep 17 00:00:00 2001 From: Ladislav Sulak Date: Wed, 3 Apr 2024 18:28:20 +0200 Subject: [PATCH] #118: fixing IT tests, caused by recent auto-rename/refactoring error --- .../doobie/DoobieMultipleResultFunctionWithStatusTest.scala | 4 ++-- .../slick/SlickMultipleResultFunctionWithStatusTest.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doobie/src/it/scala/za/co/absa/fadb/doobie/DoobieMultipleResultFunctionWithStatusTest.scala b/doobie/src/it/scala/za/co/absa/fadb/doobie/DoobieMultipleResultFunctionWithStatusTest.scala index 8c9dfc12..f8a5b984 100644 --- a/doobie/src/it/scala/za/co/absa/fadb/doobie/DoobieMultipleResultFunctionWithStatusTest.scala +++ b/doobie/src/it/scala/za/co/absa/fadb/doobie/DoobieMultipleResultFunctionWithStatusTest.scala @@ -33,7 +33,7 @@ class DoobieMultipleResultFunctionWithStatusTest extends AnyFunSuite with Doobie values => Seq(fr"${values.lastName}", fr"${values.firstName}") } - class GetActorsByLastnameStatusAggregator(implicit schema: DBSchema, dbEngine: DoobieEngine[IO]) + class GetActorsByLastname(implicit schema: DBSchema, dbEngine: DoobieEngine[IO]) // Option[Actor] because: Actor might not exist, and the function would return only status info without actor data extends DoobieMultipleResultFunctionWithStatus[GetActorsByLastnameQueryParameters, Option[Actor], IO](getActorsByLastnameQueryFragments) with StandardStatusHandling @@ -41,7 +41,7 @@ class DoobieMultipleResultFunctionWithStatusTest extends AnyFunSuite with Doobie override def fieldsToSelect: Seq[String] = super.fieldsToSelect ++ Seq("actor_id", "first_name", "last_name") } - private val getActorsByLastname = new GetActorsByLastnameStatusAggregator()(Integration, new DoobieEngine(transactor)) + private val getActorsByLastname = new GetActorsByLastname()(Integration, new DoobieEngine(transactor)) test("Retrieving multiple actors from database, lastName match") { val expectedResultElem = Set( diff --git a/slick/src/it/scala/za/co/absa/fadb/slick/SlickMultipleResultFunctionWithStatusTest.scala b/slick/src/it/scala/za/co/absa/fadb/slick/SlickMultipleResultFunctionWithStatusTest.scala index 1e15fdf7..383bc2ea 100644 --- a/slick/src/it/scala/za/co/absa/fadb/slick/SlickMultipleResultFunctionWithStatusTest.scala +++ b/slick/src/it/scala/za/co/absa/fadb/slick/SlickMultipleResultFunctionWithStatusTest.scala @@ -31,7 +31,7 @@ import scala.concurrent.ExecutionContext.Implicits.global class SlickMultipleResultFunctionWithStatusTest extends AnyFunSuite with SlickTest with ScalaFutures { - class GetActorsByLastnameStatusAggregator(implicit override val schema: DBSchema, val dbEngine: SlickPgEngine) + class GetActorsByLastname(implicit override val schema: DBSchema, val dbEngine: SlickPgEngine) extends SlickMultipleResultFunctionWithStatus[GetActorsByLastnameQueryParameters, Option[Actor]] with StandardStatusHandling with ByFirstErrorStatusAggregator @@ -44,7 +44,7 @@ class SlickMultipleResultFunctionWithStatusTest extends AnyFunSuite with SlickTe } } - private val getActorsByLastname = new GetActorsByLastnameStatusAggregator()(Integration, new SlickPgEngine(db)) + private val getActorsByLastname = new GetActorsByLastname()(Integration, new SlickPgEngine(db)) test("Retrieving actors from database") { val expectedResultElem = Set(