diff --git a/build.sbt b/build.sbt index bc14cef..5ce865d 100644 --- a/build.sbt +++ b/build.sbt @@ -9,7 +9,7 @@ lazy val sprayJsonVersion = "1.3.5" lazy val kafkaClientVersion = "2.3.0" lazy val jsoninterScalaVersion = "1.0.0" lazy val confluentPlatformVersion = "5.3.2" -lazy val scalaTestVersion = "3.0.8" +lazy val scalaTestVersion = "3.1.2" lazy val scalaCheckVersion = "1.14.3" lazy val scalaMockVersion = "3.6.0" lazy val wiremockVersion = "2.24.0" diff --git a/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala b/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala index 3ada626..3215f0d 100644 --- a/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala +++ b/testkit/src/main/scala/com/ovoenergy/kafka/serialization/testkit/UnitSpec.scala @@ -19,8 +19,9 @@ package com.ovoenergy.kafka.serialization.testkit import org.scalacheck.{Arbitrary, Gen} import org.scalacheck.Arbitrary._ import org.scalatest.concurrent.{ScalaFutures, ScaledTimeSpans} -import org.scalatest.prop.PropertyChecks -import org.scalatest.{Matchers, WordSpec} +import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks +import org.scalatest.matchers.should.Matchers +import org.scalatest.wordspec.AnyWordSpec object UnitSpec { @@ -38,7 +39,7 @@ object UnitSpec { } -abstract class UnitSpec extends WordSpec with Matchers with PropertyChecks with ScalaFutures with ScaledTimeSpans { +abstract class UnitSpec extends AnyWordSpec with Matchers with ScalaCheckPropertyChecks with ScalaFutures with ScaledTimeSpans { override lazy val spanScaleFactor: Double = sys.env.get("TEST_TIME_FACTOR").map(_.toDouble).getOrElse(super.spanScaleFactor)