ScalaTest boilerplate

(, en)

This is my ScalaTest boilerplate, copy, paste, trim.

Dependencies

// build.sbt
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % "test"
libraryDependencies += "org.mockito" %% "mockito-scala-scalatest" % "1.17.5" % "test"

Boilerplate

// src/test/scala/BoilerplateSpec.scala
import org.mockito.ArgumentMatchers._
import org.mockito.ArgumentMatchersSugar.eqTo
import org.mockito.Mockito.never
import org.mockito.MockitoSugar.verify
import org.mockito.MockitoSugar.when
import org.mockito.scalatest.MockitoSugar
import org.scalatest.Inside.inside
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import org.scalatest.prop.TableDrivenPropertyChecks



class BoilerplateSpec
    extends AnyFlatSpec
    with Matchers
    with MockitoSugar
    with TableDrivenPropertyChecks {

}

See also