Skip to content

Commit a84a1fd

Browse files
Emil Ejbyfeldttrivialfis
andauthored
[jvm-packages] Update scalatest to 3.2.15 (#8925)
--------- Co-authored-by: Jiaming Yuan <[email protected]>
1 parent 564df59 commit a84a1fd

File tree

22 files changed

+46
-42
lines changed

22 files changed

+46
-42
lines changed

jvm-packages/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,13 +495,13 @@
495495
<dependency>
496496
<groupId>org.scalatest</groupId>
497497
<artifactId>scalatest_${scala.binary.version}</artifactId>
498-
<version>3.0.8</version>
498+
<version>3.2.15</version>
499499
<scope>test</scope>
500500
</dependency>
501501
<dependency>
502502
<groupId>org.scalactic</groupId>
503503
<artifactId>scalactic_${scala.binary.version}</artifactId>
504-
<version>3.0.8</version>
504+
<version>3.2.15</version>
505505
<scope>test</scope>
506506
</dependency>
507507
</dependencies>

jvm-packages/xgboost4j-gpu/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>org.scalatest</groupId>
5555
<artifactId>scalatest_${scala.binary.version}</artifactId>
56-
<version>3.0.5</version>
56+
<version>3.2.15</version>
5757
<scope>provided</scope>
5858
</dependency>
5959
<dependency>

jvm-packages/xgboost4j-gpu/src/test/scala/ml/dmlc/xgboost4j/scala/QuantileDMatrixSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package ml.dmlc.xgboost4j.scala
1919
import scala.collection.mutable.ArrayBuffer
2020

2121
import ai.rapids.cudf.Table
22-
import org.scalatest.FunSuite
22+
import org.scalatest.funsuite.AnyFunSuite
2323
import ml.dmlc.xgboost4j.gpu.java.CudfColumnBatch
2424

25-
class QuantileDMatrixSuite extends FunSuite {
25+
class QuantileDMatrixSuite extends AnyFunSuite {
2626

2727
test("QuantileDMatrix test") {
2828

jvm-packages/xgboost4j-spark-gpu/src/test/scala/ml/dmlc/xgboost4j/scala/rapids/spark/GpuTestSuite.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ import java.nio.file.{Files, Path}
2020
import java.sql.{Date, Timestamp}
2121
import java.util.{Locale, TimeZone}
2222

23-
import org.scalatest.{BeforeAndAfterAll, FunSuite}
23+
import org.scalatest.BeforeAndAfterAll
24+
import org.scalatest.funsuite.AnyFunSuite
2425

2526
import org.apache.spark.{GpuTestUtils, SparkConf}
2627
import org.apache.spark.internal.Logging
2728
import org.apache.spark.network.util.JavaUtils
2829
import org.apache.spark.sql.{Row, SparkSession}
2930

30-
trait GpuTestSuite extends FunSuite with TmpFolderSuite {
31+
trait GpuTestSuite extends AnyFunSuite with TmpFolderSuite {
3132
import SparkSessionHolder.withSparkSession
3233

3334
protected def getResourcePath(resource: String): String = {
@@ -200,7 +201,7 @@ trait GpuTestSuite extends FunSuite with TmpFolderSuite {
200201

201202
}
202203

203-
trait TmpFolderSuite extends BeforeAndAfterAll { self: FunSuite =>
204+
trait TmpFolderSuite extends BeforeAndAfterAll { self: AnyFunSuite =>
204205
protected var tempDir: Path = _
205206

206207
override def beforeAll(): Unit = {

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/CommunicatorRobustnessSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import scala.util.Random
2323
import ml.dmlc.xgboost4j.java.{Communicator, RabitTracker => PyRabitTracker}
2424
import ml.dmlc.xgboost4j.java.IRabitTracker.TrackerStatus
2525
import ml.dmlc.xgboost4j.scala.DMatrix
26-
import org.scalatest.FunSuite
26+
import org.scalatest.funsuite.AnyFunSuite
2727

28-
class CommunicatorRobustnessSuite extends FunSuite with PerTest {
28+
class CommunicatorRobustnessSuite extends AnyFunSuite with PerTest {
2929

3030
private def getXGBoostExecutionParams(paramMap: Map[String, Any]): XGBoostExecutionParams = {
3131
val classifier = new XGBoostClassifier(paramMap)

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/DeterministicPartitioningSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
package ml.dmlc.xgboost4j.scala.spark
1818

1919
import org.apache.spark.ml.linalg.Vectors
20-
import org.scalatest.FunSuite
20+
import org.scalatest.funsuite.AnyFunSuite
2121
import ml.dmlc.xgboost4j.scala.spark.util.DataUtils
2222
import ml.dmlc.xgboost4j.scala.spark.util.DataUtils.PackedParams
2323

2424
import org.apache.spark.sql.functions._
2525

26-
class DeterministicPartitioningSuite extends FunSuite with TmpFolderPerSuite with PerTest {
26+
class DeterministicPartitioningSuite extends AnyFunSuite with TmpFolderPerSuite with PerTest {
2727

2828
test("perform deterministic partitioning when checkpointInternal and" +
2929
" checkpointPath is set (Classifier)") {

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/ExternalCheckpointManagerSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package ml.dmlc.xgboost4j.scala.spark
1919
import java.io.File
2020

2121
import ml.dmlc.xgboost4j.scala.{Booster, DMatrix, ExternalCheckpointManager, XGBoost => SXGBoost}
22-
import org.scalatest.FunSuite
22+
import org.scalatest.funsuite.AnyFunSuite
2323
import org.apache.hadoop.fs.{FileSystem, Path}
2424

25-
class ExternalCheckpointManagerSuite extends FunSuite with TmpFolderPerSuite with PerTest {
25+
class ExternalCheckpointManagerSuite extends AnyFunSuite with TmpFolderPerSuite with PerTest {
2626

2727
private def produceParamMap(checkpointPath: String, checkpointInterval: Int):
2828
Map[String, Any] = {

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/FeatureSizeValidatingSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ package ml.dmlc.xgboost4j.scala.spark
1818

1919
import org.apache.spark.Partitioner
2020
import org.apache.spark.ml.feature.VectorAssembler
21-
import org.scalatest.FunSuite
21+
import org.scalatest.funsuite.AnyFunSuite
2222
import org.apache.spark.sql.functions._
2323

2424
import scala.util.Random
2525

26-
class FeatureSizeValidatingSuite extends FunSuite with PerTest {
26+
class FeatureSizeValidatingSuite extends AnyFunSuite with PerTest {
2727

2828
test("transform throwing exception if feature size of dataset is greater than model's") {
2929
val modelPath = getClass.getResource("/model/0.82/model").getPath

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/MissingValueHandlingSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ package ml.dmlc.xgboost4j.scala.spark
1919
import org.apache.spark.ml.feature.VectorAssembler
2020
import org.apache.spark.ml.linalg.Vectors
2121
import org.apache.spark.sql.DataFrame
22-
import org.scalatest.FunSuite
22+
import org.scalatest.funsuite.AnyFunSuite
2323
import scala.util.Random
2424

2525
import org.apache.spark.SparkException
2626

27-
class MissingValueHandlingSuite extends FunSuite with PerTest {
27+
class MissingValueHandlingSuite extends AnyFunSuite with PerTest {
2828
test("dense vectors containing missing value") {
2929
def buildDenseDataFrame(): DataFrame = {
3030
val numRows = 100

jvm-packages/xgboost4j-spark/src/test/scala/ml/dmlc/xgboost4j/scala/spark/ParameterSuite.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616

1717
package ml.dmlc.xgboost4j.scala.spark
1818

19-
import org.scalatest.{BeforeAndAfterAll, FunSuite}
19+
import org.scalatest.BeforeAndAfterAll
20+
import org.scalatest.funsuite.AnyFunSuite
2021

2122
import org.apache.spark.SparkException
2223
import org.apache.spark.ml.param.ParamMap
2324

24-
class ParameterSuite extends FunSuite with PerTest with BeforeAndAfterAll {
25+
class ParameterSuite extends AnyFunSuite with PerTest with BeforeAndAfterAll {
2526

2627
test("XGBoost and Spark parameters synchronize correctly") {
2728
val xgbParamMap = Map("eta" -> "1", "objective" -> "binary:logistic",

0 commit comments

Comments
 (0)