Tables

org.specs2.specification.Tables
See theTables companion trait
object Tables extends Tables, Expectations

Attributes

Companion
trait
Graph
Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait Tables
trait DataTables
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
Self type
Tables.type

Members list

Type members

Inherited classlikes

abstract class DataRow[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10] extends Product

Attributes

Inherited from:
DataTables
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
class DataRow1[T1]
class DataRow10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]
class DataRow2[T1, T2]
class DataRow3[T1, T2, T3]
class DataRow4[T1, T2, T3, T4]
class DataRow5[T1, T2, T3, T4, T5]
class DataRow6[T1, T2, T3, T4, T5, T6]
class DataRow7[T1, T2, T3, T4, T5, T6, T7]
class DataRow8[T1, T2, T3, T4, T5, T6, T7, T8]
class DataRow9[T1, T2, T3, T4, T5, T6, T7, T8, T9]
Show all
case class DataRow1[+T1](t1: T1) extends DataRow[T1, Any, Any, Any, Any, Any, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, Any, Any, Any, Any, Any, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow10[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10) extends DataRow[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow2[+T1, +T2](t1: T1, t2: T2) extends DataRow[T1, T2, Any, Any, Any, Any, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, Any, Any, Any, Any, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow3[+T1, +T2, +T3](t1: T1, t2: T2, t3: T3) extends DataRow[T1, T2, T3, Any, Any, Any, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, Any, Any, Any, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow4[+T1, +T2, +T3, +T4](t1: T1, t2: T2, t3: T3, t4: T4) extends DataRow[T1, T2, T3, T4, Any, Any, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, Any, Any, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow5[+T1, +T2, +T3, +T4, +T5](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) extends DataRow[T1, T2, T3, T4, T5, Any, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, Any, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow6[+T1, +T2, +T3, +T4, +T5, +T6](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6) extends DataRow[T1, T2, T3, T4, T5, T6, Any, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, T6, Any, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow7[+T1, +T2, +T3, +T4, +T5, +T6, +T7](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7) extends DataRow[T1, T2, T3, T4, T5, T6, T7, Any, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, T6, T7, Any, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow8[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8) extends DataRow[T1, T2, T3, T4, T5, T6, T7, T8, Any, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, T6, T7, T8, Any, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class DataRow9[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9) extends DataRow[T1, T2, T3, T4, T5, T6, T7, T8, T9, Any]

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
class DataRow[T1, T2, T3, T4, T5, T6, T7, T8, T9, Any]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class Table(val titles: List[String], val execute: Boolean)

A DataTable with its header

A DataTable with its header

Children of this class are parametrized with the types of values that their rows can hold.

Attributes

Inherited from:
DataTables
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Table1[T1]
class Table10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]
class Table2[T1, T2]
class Table3[T1, T2, T3]
class Table4[T1, T2, T3, T4]
class Table5[T1, T2, T3, T4, T5]
class Table6[T1, T2, T3, T4, T5, T6]
class Table7[T1, T2, T3, T4, T5, T6, T7]
class Table8[T1, T2, T3, T4, T5, T6, T7, T8]
class Table9[T1, T2, T3, T4, T5, T6, T7, T8, T9]
Show all
case class Table1[T1](titles: List[String], rows: List[DataRow1[T1]], execute: Boolean, show1: Show1[T1]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10](titles: List[String], rows: List[DataRow10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]], execute: Boolean, show10: Show10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table2[T1, T2](titles: List[String], rows: List[DataRow2[T1, T2]], execute: Boolean, show2: Show2[T1, T2]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table3[T1, T2, T3](titles: List[String], rows: List[DataRow3[T1, T2, T3]], execute: Boolean, show3: Show3[T1, T2, T3]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table4[T1, T2, T3, T4](titles: List[String], rows: List[DataRow4[T1, T2, T3, T4]], execute: Boolean, show4: Show4[T1, T2, T3, T4]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table5[T1, T2, T3, T4, T5](titles: List[String], rows: List[DataRow5[T1, T2, T3, T4, T5]], execute: Boolean, show5: Show5[T1, T2, T3, T4, T5]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table6[T1, T2, T3, T4, T5, T6](titles: List[String], rows: List[DataRow6[T1, T2, T3, T4, T5, T6]], execute: Boolean, show6: Show6[T1, T2, T3, T4, T5, T6]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table7[T1, T2, T3, T4, T5, T6, T7](titles: List[String], rows: List[DataRow7[T1, T2, T3, T4, T5, T6, T7]], execute: Boolean, show7: Show7[T1, T2, T3, T4, T5, T6, T7]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table8[T1, T2, T3, T4, T5, T6, T7, T8](titles: List[String], rows: List[DataRow8[T1, T2, T3, T4, T5, T6, T7, T8]], execute: Boolean, show8: Show8[T1, T2, T3, T4, T5, T6, T7, T8]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class Table9[T1, T2, T3, T4, T5, T6, T7, T8, T9](titles: List[String], rows: List[DataRow9[T1, T2, T3, T4, T5, T6, T7, T8, T9]], execute: Boolean, show9: Show9[T1, T2, T3, T4, T5, T6, T7, T8, T9]) extends Table

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Table
class Object
trait Matchable
class Any
Show all
case class TableHeader(titles: List[String])

GENERATED

GENERATED

Attributes

Inherited from:
DataTables
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object given_Conversion_String_TableHeader extends Conversion[String, TableHeader]

Attributes

Returns

a TableHeader with one heading only

Inherited from:
DataTables
Supertypes
class Conversion[String, TableHeader]
trait String => TableHeader
class Object
trait Matchable
class Any

Value members

Inherited methods

protected def checkResultFailure(r: => Result): Result

this method can be overridden to throw exceptions when checking a result

this method can be overridden to throw exceptions when checking a result

Attributes

Inherited from:
ResultChecks
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
protected def mapResult(r: Result): Result

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

Attributes

Inherited from:
ResultChecks
protected def sandboxResult(r: => Result): Result

Attributes

Returns

the result without any side-effects

Inherited from:
ResultChecks
protected def setStacktrace(m: Result): Result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

Attributes

Inherited from:
MatchResultStackTrace
def theBlock(t: => Nothing): Expectable[Nothing]

Attributes

Inherited from:
ExpectationsCreation
def theValue[T](t: => T): Expectable[T]

Attributes

Inherited from:
ExpectationsCreation

Givens

Inherited givens

Attributes

Returns

a TableHeader with one heading only

Inherited from:
DataTables
given given_Conversion_T_DataRow1[T]: given_Conversion_T_DataRow1[T]

Attributes

Returns

a DataRow with one value only

Inherited from:
DataTables

Attributes

Inherited from:
NoBangExamples

Extensions

Inherited extensions

extension [T](description: String)(using not: NotGiven[NoExpectationsDescription])(using evidence$2: AsResult[T])
def <==>(result: => T): Result

Attributes

Inherited from:
ExpectationsDescription
extension [T](description: String)(using not: NotGiven[NoExpectationsDescription])(using evidence$1: AsResult[T])
def ==>(result: => T): Result

Attributes

Inherited from:
ExpectationsDescription
extension [A](f: Future[A])
def run: A

Attributes

Inherited from:
DataTables
extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$1: Diffable[T])
def ===(other: => T): Result

equality matcher on Expectables

equality matcher on Expectables

Attributes

Inherited from:
TypedEqual
extension [T](t: => T)(using not: NotGiven[NoTypedEqual])(using evidence$2: Diffable[T])
def !==(other: => T): Result

! equality matcher on Expectables

! equality matcher on Expectables

Attributes

Inherited from:
TypedEqual
extension [T](value: => T)(using not: NotGiven[NoValueDescription])
infix def aka(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description

Inherited from:
ExpectationsDescription
infix def aka: Expectable[T]

Attributes

Returns

an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value

Inherited from:
ExpectationsDescription
infix def as(alias: String => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

Inherited from:
ExpectationsDescription
infix def post(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

Inherited from:
ExpectationsDescription
infix def showAs(show: T => String): Expectable[T]

Attributes

Returns

an expectable with a function to show the element T

Inherited from:
ExpectationsDescription
extension [T](value: => T)(using not: NotGiven[NoValueDescription], show: T => String)
infix def showAs: Expectable[T]

Attributes

Returns

an expectable with a function to show the element T

Inherited from:
ExpectationsDescription