File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
openai-client/src/test/scala/io/cequence/openaiscala Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 32
32
strategy :
33
33
fail-fast : true
34
34
matrix :
35
- # cannot test or even compile tests on Scala 3.2.2 (mockito-scala-scalatest is not available)
36
- scala : [ '2.12.18', '2.13.11']
35
+ scala : [ '2.12.18', '2.13.11', '3.2.2']
37
36
38
37
steps :
39
38
- uses : actions/checkout@v3
71
70
matrix :
72
71
distribution : [ 'corretto' ]
73
72
jdk : [ '11' ]
74
- # cannot test or even compile tests on Scala 3.2.2 (mockito-scala-scalatest is not available)
75
- scala : [ '2.12.18', '2.13.11']
73
+ scala : [ '2.12.18', '2.13.11', '3.2.2']
76
74
experimental : [ false ]
77
75
include :
78
76
- jdk : ' 17'
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ThisBuild / isSnapshot := false
13
13
lazy val commonSettings = Seq (
14
14
libraryDependencies += " org.scalactic" %% " scalactic" % " 3.2.16" ,
15
15
libraryDependencies += " org.scalatest" %% " scalatest" % " 3.2.16" % Test ,
16
+ libraryDependencies += " org.scalatestplus" %% " mockito-4-11" % " 3.2.16.0" % Test ,
16
17
libraryDependencies ++= extraTestDependencies(scalaVersion.value),
17
18
crossScalaVersions := List (scala212, scala213, scala3)
18
19
)
@@ -21,13 +22,16 @@ def extraTestDependencies(scalaVersion: String) =
21
22
CrossVersion .partialVersion(scalaVersion) match {
22
23
case Some ((2 , 12 )) =>
23
24
Seq (
24
- " org.mockito" %% " mockito-scala-scalatest" % " 1.17.14" % Test ,
25
25
" com.typesafe.akka" %% " akka-actor-testkit-typed" % " 2.6.1" % Test
26
26
)
27
27
28
28
case Some ((2 , 13 )) =>
29
29
Seq (
30
- " org.mockito" %% " mockito-scala-scalatest" % " 1.17.14" % Test ,
30
+ " com.typesafe.akka" %% " akka-actor-testkit-typed" % " 2.6.20" % Test
31
+ )
32
+
33
+ case Some ((3 , _)) =>
34
+ Seq (
31
35
" com.typesafe.akka" %% " akka-actor-testkit-typed" % " 2.6.20" % Test
32
36
)
33
37
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ package io.cequence.openaiscala
3
3
import akka .actor .{ActorSystem , Scheduler }
4
4
import akka .testkit .TestKit
5
5
import io .cequence .openaiscala .RetryHelpers .{RetrySettings , delay , retry }
6
- import org .mockito .scalatest .MockitoSugar
6
+ import org .mockito .Mockito ._
7
+ import org .scalatestplus .mockito .MockitoSugar
7
8
import org .scalatest .RecoverMethods ._
8
9
import org .scalatest .concurrent .ScalaFutures
9
10
import org .scalatest .matchers .should .Matchers
You can’t perform that action at this time.
0 commit comments