Package

com.salesforce.op

test

Permalink

package test

Visibility
  1. Public
  2. All

Type Members

  1. case class Prestige(education: Double, income: Double, women: Double, prestige: Double) extends Product with Serializable

    Permalink
  2. trait PrestigeData extends AnyRef

    Permalink
  3. trait TempDirectoryTest extends BeforeAndAfterAll

    Permalink

    Trait that creates a temporary directory before all tests and deletes it after all.

    Trait that creates a temporary directory before all tests and deletes it after all. Modified version of Spark 2.x test suite trait

  4. trait TestCommon extends Matchers with Assertions

    Permalink

    Trait with test commons such as Spec and Resource functions

  5. trait TestSparkContext extends TempDirectoryTest with TestCommon

    Permalink

    Trait to enable Spark context for tests Modified version of Spark 2.x test suite trait

  6. trait TestSparkStreamingContext extends TestSparkContext

    Permalink

    Trait to enable Spark streaming context for tests

Value Members

  1. object SparkMatchers

    Permalink

    Convenient matchers for spark functionality.

    Convenient matchers for spark functionality.

    Examples of usage:

     in(myDF) allOf "MyNumericColumn" should beBetween(-1, 1)
    
     in(myDF) someOf "MyStringColumn" should (
       (x: String) => (x contains "Country") || (x contains "State")
    )
    
    in(myDF) noneOf "UserName" shouldContain "Snowden"

Ungrouped