Skip to content

Commit d719043

Browse files
authored
Bump test dependencies
1 parent 295c0e0 commit d719043

File tree

52 files changed

+240
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+240
-195
lines changed

build.gradle

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ subprojects {
3636
apply plugin: 'scala'
3737
apply plugin: 'java-library'
3838

39+
configurations {
40+
mockitoAgent
41+
}
42+
3943
dependencies {
4044
api libs.scala.library
4145

@@ -49,15 +53,28 @@ subprojects {
4953
testImplementation libs.log4j.core
5054
testImplementation libs.testing.scala.scalatest
5155
testImplementation libs.testing.scala.scalacheck
52-
testImplementation libs.testing.junit
53-
testImplementation libs.testing.mockito.all
54-
testRuntimeOnly libs.testing.junit.platform.runner
56+
testImplementation libs.testing.mockito.core
57+
mockitoAgent(libs.testing.mockito.core) {
58+
transitive = false
59+
}
60+
testImplementation libs.testing.scalatest.scalacheck
61+
testImplementation libs.testing.scalatest.mockito
62+
testImplementation libs.testing.junit.platform.launcher
63+
64+
testRuntimeOnly libs.testing.junit.platform.engine
65+
testRuntimeOnly libs.testing.scalatest.junit
5566
}
5667

5768
test {
5869
maxHeapSize = "2g"
5970
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
60-
useJUnit()
71+
72+
useJUnitPlatform {
73+
includeEngines 'scalatest'
74+
testLogging {
75+
events("failed", "standard_error")
76+
}
77+
}
6178

6279
// JVM args required by spark (see org.apache.spark.launcher.JavaModuleOptions)
6380
jvmArgs(
@@ -81,6 +98,7 @@ subprojects {
8198
'--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED',
8299
'-Djdk.reflect.useDirectMethodHandle=false'
83100
)
101+
jvmArgs += "-javaagent:${configurations.mockitoAgent.asPath}"
84102

85103
def testTempDir = layout.buildDirectory.get().dir("tmp/test").asFile
86104
testTempDir.mkdirs()

gradle/libs.versions.toml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,31 @@
22
apache-commons-text = "1.14.0"
33
bctls = "1.59"
44
cats = "2.13.0"
5-
claimant = "0.0.2"
5+
claimant = "0.2.0"
66
cypher-frontend = "9.0.20190305"
77
cypher-tck = "1.0.0-M14"
8-
discipline = "0.11.0"
8+
discipline-core = "1.7.0"
9+
discipline-scalatest = "2.3.0"
910
eff = "7.0.6"
1011
fastparse = "2.1.0"
1112
h2 = "2.4.240"
1213
# Note: has shared transitive dependencies with spark
1314
hadoop = "3.3.4"
14-
junit-main = "4.12"
15-
junit-runner = "1.0.2"
15+
junit-platform = "1.13.1"
1616
log4j-main = "2.25.2"
1717
log4j-scala = "13.1.0"
18-
mockito = "1.10.19"
18+
mockito = "5.18.0"
1919
neo4j-driver = "1.7.2"
2020
netty = "4.2.7.Final"
2121
# @pin - let's prevent automatic updates for the moment
2222
scala-full = "2.12.20"
2323
# @pin - let's prevent automatic updates for the moment
2424
scala-major = "2.12"
25-
scalacheck = "1.14.0"
26-
scalatest = "3.0.6"
25+
scalacheck = "1.19.0"
26+
scalatest = "3.2.19"
27+
scalatest-mockito = "3.2.19.0" # Note, connected to scalatest version
28+
scalatest-scalacheck = "3.2.19.0" # Note, connected to scalatest version
29+
scalatest-junit = "3.2.19.0" # Note, connected to scalatest version
2730
spark = "3.5.7"
2831
testcontainers = "2.0.2"
2932
upickle = "4.4.1"
@@ -47,7 +50,7 @@ opencypher-rewriting = { module = "org.opencypher:rewriting-9.0", version.ref =
4750
opencypher-tck = { module = "org.opencypher:tck", version.ref = "cypher-tck" }
4851
opencypher-tck-api = { module = "org.opencypher:tck-api_2.12", version.ref = "cypher-tck" }
4952
opencypher-util = { module = "org.opencypher:util-9.0", version.ref = "cypher-frontend" }
50-
scala-claimant = { module = "org.spire-math:claimant_2.12", version.ref = "claimant" }
53+
scala-claimant = { module = "org.typelevel:claimant_2.12", version.ref = "claimant" }
5154
scala-eff = { module = "org.atnos:eff_2.12", version.ref = "eff" }
5255
scala-fastparse = { module = "com.lihaoyi:fastparse_2.12", version.ref = "fastparse" }
5356
# Seems we need to lock this down, otherwise we get runtime errors on reflection
@@ -63,14 +66,18 @@ scala-spark-hive = { module = "org.apache.spark:spark-hive_2.12", version.ref =
6366
scala-spark-sql = { module = "org.apache.spark:spark-sql_2.12", version.ref = "spark" }
6467
scala-typelevel-cats-core = { module = "org.typelevel:cats-core_2.12", version.ref = "cats" }
6568
scala-typelevel-cats-laws = { module = "org.typelevel:cats-laws_2.12", version.ref = "cats" }
66-
scala-typelevel-discipline = { module = "org.typelevel:discipline_2.12", version.ref = "discipline" }
69+
scala-typelevel-discipline-core = { module = "org.typelevel:discipline-core_2.12", version.ref = "discipline-core" }
70+
scala-typelevel-discipline-scalatest = { module = "org.typelevel:discipline-scalatest_2.12", version.ref = "discipline-scalatest" }
6771
scala-upickle = { module = "com.lihaoyi:upickle_2.12", version.ref = "upickle" }
6872
testcontainers-neo4j = { module = "org.testcontainers:testcontainers-neo4j", version.ref = "testcontainers" }
69-
testing-junit = { module = "junit:junit", version.ref = "junit-main" }
70-
testing-junit-platform-runner = { module = "org.junit.platform:junit-platform-runner", version.ref = "junit-runner" }
71-
testing-mockito-all = { module = "org.mockito:mockito-all", version.ref = "mockito" }
73+
testing-junit-platform-engine = { module = "org.junit.platform:junit-platform-engine", version.ref = "junit-platform" }
74+
testing-junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junit-platform" }
75+
testing-mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
7276
testing-scala-scalacheck = { module = "org.scalacheck:scalacheck_2.12", version.ref = "scalacheck" }
7377
testing-scala-scalatest = { module = "org.scalatest:scalatest_2.12", version.ref = "scalatest" }
78+
testing-scalatest-mockito = { module = "org.scalatestplus:mockito-5-18_2.12", version.ref = "scalatest-mockito" }
79+
testing-scalatest-scalacheck = { module = "org.scalatestplus:scalacheck-1-18_2.12", version.ref = "scalatest-scalacheck" }
80+
testing-scalatest-junit = { module = "org.scalatestplus:junit-5-13_2.12", version.ref = "scalatest-junit" }
7481

7582
[plugins]
7683
champeau-jmh = "me.champeau.jmh:0.7.3"

graph-ddl/src/test/scala/org/opencypher/graphddl/GraphDdlTest.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@
2626
*/
2727
package org.opencypher.graphddl
2828

29-
import org.junit.runner.RunWith
3029
import org.opencypher.graphddl.GraphDdlParser.parseDdl
3130
import org.opencypher.okapi.api.graph.GraphName
3231
import org.opencypher.okapi.api.types.{CTBoolean, CTFloat, CTInteger, CTString}
3332
import org.opencypher.okapi.testing.MatchHelper.equalWithTracing
34-
import org.scalatestplus.junit.JUnitRunner
35-
import org.scalatest.{FunSpec, Matchers}
33+
import org.scalatest.funspec.AnyFunSpec
34+
import org.scalatest.matchers.should.Matchers
3635

37-
@RunWith(classOf[JUnitRunner])
38-
class GraphDdlTest extends FunSpec with Matchers {
36+
class GraphDdlTest extends AnyFunSpec with Matchers {
3937

4038
val ddlString: String =
4139
s"""

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CaseClassExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CaseClassExampleTest extends ExampleTest {
29+
class CaseClassExampleTest extends ExampleTestBase {
3030
it("should produce the correct output") {
3131
validate(
3232
CaseClassExample.main(Array.empty),

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CatalogExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CatalogExampleTest extends ExampleTest {
29+
class CatalogExampleTest extends ExampleTestBase {
3030
it("should produce the correct output") {
3131
validate(
3232
CatalogExample.main(Array.empty),

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CensusHiveExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CensusHiveExampleTest extends ExampleTest {
29+
class CensusHiveExampleTest extends ExampleTestBase {
3030
it("runs CensusHiveExampleTest") {
3131
validate(
3232
CensusHiveExample.main(Array.empty),

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CensusJdbcExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CensusJdbcExampleTest extends ExampleTest {
29+
class CensusJdbcExampleTest extends ExampleTestBase {
3030
it("runs CensusJdbcExample") {
3131
validate(
3232
CensusJdbcExample.main(Array.empty),

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CustomDataFrameInputExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CustomDataFrameInputExampleTest extends ExampleTest {
29+
class CustomDataFrameInputExampleTest extends ExampleTestBase {
3030
it("should produce the correct output") {
3131
validate(
3232
CustomDataFrameInputExample.main(Array.empty),

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/Customer360ExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package org.opencypher.morpheus.examples
2828

2929
import org.opencypher.okapi.neo4j.io.testing.Neo4jServerFixture
3030

31-
class Customer360ExampleTest extends ExampleTest with Neo4jServerFixture {
31+
class Customer360ExampleTest extends ExampleTestBase with Neo4jServerFixture {
3232
override def dataFixture: String = ""
3333

3434
it("should produce the correct output") {

morpheus-examples/src/test/scala/org/opencypher/morpheus/examples/CypherSQLRoundtripExampleTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
package org.opencypher.morpheus.examples
2828

29-
class CypherSQLRoundtripExampleTest extends ExampleTest {
29+
class CypherSQLRoundtripExampleTest extends ExampleTestBase {
3030
it("should produce the correct output") {
3131
validate(
3232
CypherSQLRoundtripExample.main(Array.empty),

0 commit comments

Comments
 (0)