GenericTest

class GenericTest[T](val name: String, val body: () => T, val tags: Set[Tag], val location: Location) extends Serializable

Metadata about a single test case.

Metadata about a single test case.

Value Params
body

the function to be evaluated for this test case.

location

the file and line number where this test was defined.

tags

the annotated tags for this test case.

trait Serializable
class Object
trait Matchable
class Any

Value members

Constructors

def this(name: String, body: () => T)(loc: Location)

Concrete methods

def annotations: Array[Annotation]
override def equals(obj: Any): Boolean
Definition Classes
Any
override def hashCode(): Int
Definition Classes
Any
def tag(newTag: Tag): GenericTest[T]
override def toString(): String
Definition Classes
Any
def withBody[A](newBody: () => A): GenericTest[A]
def withBodyMap[A](newBody: T => A): GenericTest[A]
def withLocation(newLocation: Location): GenericTest[T]
def withName(newName: String): GenericTest[T]
def withTags(newTags: Set[Tag]): GenericTest[T]

Concrete fields

val body: () => T
val name: String
val tags: Set[Tag]