trait
DataTables
extends Expectations
Type Members
-
-
class
DataRow
[+T1, +T2, +T3, +T4, +T5, +T6, +T7, +T8, +T9, +T10]
extends Product
-
case class
DataRow1
[T1]
(t1: T1) extends DataRow[T1, Any, Any, Any, Any, Any, Any, Any, Any, Any] with Product with Serializable
-
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] with Product with Serializable
-
case class
DataRow2
[+T1, +T2]
(t1: T1, t2: T2) extends DataRow[T1, T2, Any, Any, Any, Any, Any, Any, Any, Any] with Product with Serializable
-
case class
DataRow3
[+T1, +T2, +T3]
(t1: T1, t2: T2, t3: T3) extends DataRow[T1, T2, T3, Any, Any, Any, Any, Any, Any, Any] with Product with Serializable
-
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] with Product with Serializable
-
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] with Product with Serializable
-
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] with Product with Serializable
-
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] with Product with Serializable
-
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] with Product with Serializable
-
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] with Product with Serializable
-
class
Descriptible
[T]
extends AnyRef
-
class
Table
extends AnyRef
-
case class
Table1
[T1]
(titles: List[String], rows: List[DataRow1[T1]], execute: Boolean) extends Table with Product with Serializable
-
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) extends Table with Product with Serializable
-
case class
Table2
[T1, T2]
(titles: List[String], rows: List[DataRow2[T1, T2]], execute: Boolean) extends Table with Product with Serializable
-
case class
Table3
[T1, T2, T3]
(titles: List[String], rows: List[DataRow3[T1, T2, T3]], execute: Boolean) extends Table with Product with Serializable
-
case class
Table4
[T1, T2, T3, T4]
(titles: List[String], rows: List[DataRow4[T1, T2, T3, T4]], execute: Boolean) extends Table with Product with Serializable
-
case class
Table5
[T1, T2, T3, T4, T5]
(titles: List[String], rows: List[DataRow5[T1, T2, T3, T4, T5]], execute: Boolean) extends Table with Product with Serializable
-
case class
Table6
[T1, T2, T3, T4, T5, T6]
(titles: List[String], rows: List[DataRow6[T1, T2, T3, T4, T5, T6]], execute: Boolean) extends Table with Product with Serializable
-
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) extends Table with Product with Serializable
-
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) extends Table with Product with Serializable
-
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) extends Table with Product with Serializable
-
case class
TableHeader
(titles: List[String]) extends Product with Serializable
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
-
-
def
checkResultFailure
(r: Result): Result
-
def
clone
(): AnyRef
-
def
createExpectable
[T]
(t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
-
def
createExpectable
[T]
(t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
-
def
createExpectable
[T]
(t: ⇒ T, alias: String): Expectable[T]
-
def
createExpectable
[T]
(t: ⇒ T): Expectable[T]
-
def
createExpectableWithShowAs
[T]
(t: ⇒ T, showAs: ⇒ String): Expectable[T]
-
implicit def
describe
[T]
(t: ⇒ T): Descriptible[T]
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
matchResultToResult
[T]
(m: MatchResult[T]): Result
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
implicit def
toDataRow
[T]
(a: T): DataRow1[T]
-
def
toString
(): String
-
implicit def
toTableHeader
(a: String): TableHeader
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This trait provides implicit definitions and types to create DataTables.
A DataTable has a header defining column names and rows holding values. It is possible to apply a function taking the row values and returning a MatchResult.
A TableHeader is defined by separating the column names with '|':
"a" | "b" | "c"A DataRow is defined by separating the row values with '!':
1 ! 2 ! 3Note that the '!' method can conflict with the creation of Examples when the value is a string. In that case it is possible to use the '!!! method to disambiguate:
"1" !! "2" ! "3"In that case the first column of the header can also be defined with '||' for pure symmetry reasons:
"a" || "b" | "c""1" !! "2" ! "3"org.specs2.matcher.DataTablesSpec for examples