From bcc8cd2ca71f7c88e0a4adbc5733c1cdc7c76aff Mon Sep 17 00:00:00 2001 From: Eduardo Ruiz Date: Fri, 17 Nov 2023 12:17:19 +0100 Subject: [PATCH] feat: [~] FreeSpec deprecated & replaced by AnyFreeSpec --- .../com/github/mrpowers/spark/fast/tests/ArrayUtilTest.scala | 4 ++-- .../github/mrpowers/spark/fast/tests/ColumnComparerTest.scala | 4 ++-- .../mrpowers/spark/fast/tests/DataFrameComparerTest.scala | 4 ++-- .../mrpowers/spark/fast/tests/DatasetComparerTest.scala | 4 ++-- .../com/github/mrpowers/spark/fast/tests/ExamplesTest.scala | 4 ++-- .../github/mrpowers/spark/fast/tests/RDDComparerTest.scala | 4 ++-- .../github/mrpowers/spark/fast/tests/RowComparerTest.scala | 4 ++-- .../github/mrpowers/spark/fast/tests/SchemaComparerTest.scala | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/ArrayUtilTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/ArrayUtilTest.scala index c8c6af4..3443ede 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/ArrayUtilTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/ArrayUtilTest.scala @@ -2,9 +2,9 @@ package com.github.mrpowers.spark.fast.tests import java.sql.Date import java.time.LocalDate -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec -class ArrayUtilTest extends FreeSpec { +class ArrayUtilTest extends AnyFreeSpec { "blah" in { val arr: Array[(Any, Any)] = Array(("hi", "there"), ("fun", "train")) diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/ColumnComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/ColumnComparerTest.scala index d615c75..359058a 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/ColumnComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/ColumnComparerTest.scala @@ -6,9 +6,9 @@ import org.apache.spark.sql.types._ import java.sql.Date import java.sql.Timestamp -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec -class ColumnComparerTest extends FreeSpec with ColumnComparer with SparkSessionTestWrapper { +class ColumnComparerTest extends AnyFreeSpec with ColumnComparer with SparkSessionTestWrapper { "assertColumnEquality" - { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala index ee9310c..d46dac0 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala @@ -3,9 +3,9 @@ package com.github.mrpowers.spark.fast.tests import org.apache.spark.sql.types.{IntegerType, StringType} import SparkSessionExt._ -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec -class DataFrameComparerTest extends FreeSpec with DataFrameComparer with SparkSessionTestWrapper { +class DataFrameComparerTest extends AnyFreeSpec with DataFrameComparer with SparkSessionTestWrapper { "prints a descriptive error message if it bugs out" in { val sourceDF = spark.createDF( diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala index 07910fc..a6c647f 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala @@ -5,7 +5,7 @@ import org.apache.spark.sql.types._ import SparkSessionExt._ import java.time.Duration -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec object Person { @@ -16,7 +16,7 @@ object Person { case class Person(name: String, age: Int) case class PrecisePerson(name: String, age: Double) -class DatasetComparerTest extends FreeSpec with DatasetComparer with SparkSessionTestWrapper { +class DatasetComparerTest extends AnyFreeSpec with DatasetComparer with SparkSessionTestWrapper { "checkDatasetEquality" - { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/ExamplesTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/ExamplesTest.scala index 745d300..80af18c 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/ExamplesTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/ExamplesTest.scala @@ -3,9 +3,9 @@ //import org.apache.spark.sql.types._ //import SparkSessionExt._ // -//import org.scalatest.FreeSpec +//import org.scalatest.freespec.AnyFreeSpec // -//class ExamplesTest extends FreeSpec with SparkSessionTestWrapper with DataFrameComparer with ColumnComparer { +//class ExamplesTest extends AnyFreeSpec with SparkSessionTestWrapper with DataFrameComparer with ColumnComparer { // // "assertSmallDatasetEquality" - { // diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/RDDComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/RDDComparerTest.scala index 1c73d8f..5a6cd33 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/RDDComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/RDDComparerTest.scala @@ -1,8 +1,8 @@ package com.github.mrpowers.spark.fast.tests -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec -class RDDComparerTest extends FreeSpec with RDDComparer with SparkSessionTestWrapper { +class RDDComparerTest extends AnyFreeSpec with RDDComparer with SparkSessionTestWrapper { "contentMismatchMessage" - { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/RowComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/RowComparerTest.scala index 83757a9..f3490bf 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/RowComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/RowComparerTest.scala @@ -1,11 +1,11 @@ package com.github.mrpowers.spark.fast.tests import java.time.Duration -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec import org.apache.spark.sql.Row -class RowComparerTest extends FreeSpec { +class RowComparerTest extends AnyFreeSpec { "areRowsEqual" - { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala index 1fe696e..bcfd95c 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala @@ -1,9 +1,9 @@ package com.github.mrpowers.spark.fast.tests import org.apache.spark.sql.types._ -import org.scalatest.FreeSpec +import org.scalatest.freespec.AnyFreeSpec -class SchemaComparerTest extends FreeSpec { +class SchemaComparerTest extends AnyFreeSpec { "equals" - {