Skip to content

Commit d58e477

Browse files
author
Gyorgy Mora
committed
update scala version in tests
1 parent 378c2a1 commit d58e477

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ dependencies {
5151
val junitPlatformVersion = "1.6.0"
5252
val junitJupiterVersion = "5.7.0"
5353

54+
val testScalaLibraryVersion = "2.13"
55+
val testScalaVersion = "$testScalaLibraryVersion.4"
56+
5457
compileOnly("org.junit.platform:junit-platform-engine:$junitPlatformVersion")
5558
compileOnly("org.scalatest:scalatest_2.11:3.3.0-SNAP3")
5659

5760
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
5861
testImplementation("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
5962
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
6063
testImplementation("org.junit.platform:junit-platform-engine:1.6.0")
61-
testImplementation("org.scalatest:scalatest_2.11:3.2.0")
62-
testImplementation("org.scala-lang:scala-library:2.11.12")
64+
testImplementation("org.scalatest:scalatest_$testScalaLibraryVersion:3.2.0")
65+
testImplementation("org.scala-lang:scala-library:$testScalaVersion")
6366
testImplementation("org.mockito:mockito-core:3.7.0")
6467
}
6568

src/test/scala/tests/FailInAfterAllTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.scalatest.funsuite.AnyFunSuite
66

77
class FailInAfterAllTest extends AnyFunSuite with BeforeAndAfterAll with RegisterCall {
88

9-
override def afterAll() {
9+
override def afterAll():Unit = {
1010
register("after")
1111
fail()
1212
}

0 commit comments

Comments
 (0)