From 6d3bf26cdf62c26e1f89a8052c18686bb7fc2d9c Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 25 Jun 2024 09:59:27 +0000 Subject: [PATCH 1/2] Applied Scalafix rule(s) https://raw.githubusercontent.com/scalatest/autofix/e4de53fa40fac423bd64d165ff36bde38ce52388/3.1.x/rules/src/main/scala/org/scalatest/autofix/v3_1_x/RewriteDeprecatedNames.scala See https://github.com/scalatest/autofix/blob/master/3.1.x/README.md for details --- .../com/advancedtelematic/data/GVariantEncoderSpec.scala | 5 +++-- src/test/scala/com/advancedtelematic/util/TreeHubSpec.scala | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/scala/com/advancedtelematic/data/GVariantEncoderSpec.scala b/src/test/scala/com/advancedtelematic/data/GVariantEncoderSpec.scala index 0cc33e28..b58f20d6 100644 --- a/src/test/scala/com/advancedtelematic/data/GVariantEncoderSpec.scala +++ b/src/test/scala/com/advancedtelematic/data/GVariantEncoderSpec.scala @@ -3,9 +3,10 @@ package com.advancedtelematic.data import com.advancedtelematic.data.DataType.{StaticDeltaIndex, SuperBlockHash} import com.advancedtelematic.libats.messaging_datatype.DataType.Commit import eu.timepit.refined.api.RefType -import org.scalatest.{FunSuite, Matchers} +import org.scalatest.funsuite.AnyFunSuite +import org.scalatest.matchers.should.Matchers -class GVariantEncoderSpec extends FunSuite with Matchers { +class GVariantEncoderSpec extends AnyFunSuite with Matchers { def Commit(str: String): Commit = RefType.applyRef[Commit](str).toOption.get diff --git a/src/test/scala/com/advancedtelematic/util/TreeHubSpec.scala b/src/test/scala/com/advancedtelematic/util/TreeHubSpec.scala index a6401264..e8f91040 100644 --- a/src/test/scala/com/advancedtelematic/util/TreeHubSpec.scala +++ b/src/test/scala/com/advancedtelematic/util/TreeHubSpec.scala @@ -4,9 +4,10 @@ import com.advancedtelematic.libats.data.DataType.Namespace import com.advancedtelematic.treehub.Settings import com.typesafe.config.{Config, ConfigFactory} import org.scalatest.concurrent.ScalaFutures -import org.scalatest.{FunSuite, Matchers} +import org.scalatest.funsuite.AnyFunSuite +import org.scalatest.matchers.should.Matchers -abstract class TreeHubSpec extends FunSuite with Matchers with ScalaFutures with Settings { +abstract class TreeHubSpec extends AnyFunSuite with Matchers with ScalaFutures with Settings { val defaultNs = Namespace("default") val testDbConfig: Config = ConfigFactory.load().getConfig("ats.treehub.database") } From bc73045e207fda99714e12a7b327ad232636df5e Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Tue, 25 Jun 2024 09:59:27 +0000 Subject: [PATCH 2/2] Update scalatest to 3.2.19 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index e6381f01..f0d6563e 100644 --- a/build.sbt +++ b/build.sbt @@ -23,7 +23,7 @@ lazy val treehub = (project in file(".")) .settings(Seq(libraryDependencies ++= { val akkaV = "2.6.20" val akkaHttpV = "10.2.10" - val scalaTestV = "3.0.9" + val scalaTestV = "3.2.19" val libatsV = "2.1.2" Seq(