Skip to content

Commit

Permalink
feat: [~] FreeSpec deprecated & replaced by AnyFreeSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Nov 17, 2023
1 parent c0f8eda commit bcc8cd2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" - {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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" - {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" - {
//
Expand Down
Original file line number Diff line number Diff line change
@@ -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" - {

Expand Down
Original file line number Diff line number Diff line change
@@ -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" - {

Expand Down
Original file line number Diff line number Diff line change
@@ -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" - {

Expand Down

0 comments on commit bcc8cd2

Please sign in to comment.