trait
Groups extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
var
g1: () ⇒ Group
-
var
g10: () ⇒ Group
-
var
g11: () ⇒ Group
-
var
g12: () ⇒ Group
-
var
g13: () ⇒ Group
-
var
g14: () ⇒ Group
-
var
g15: () ⇒ Group
-
var
g16: () ⇒ Group
-
var
g17: () ⇒ Group
-
var
g18: () ⇒ Group
-
var
g19: () ⇒ Group
-
var
g2: () ⇒ Group
-
var
g20: () ⇒ Group
-
var
g21: () ⇒ Group
-
var
g22: () ⇒ Group
-
var
g3: () ⇒ Group
-
var
g4: () ⇒ Group
-
var
g5: () ⇒ Group
-
var
g6: () ⇒ Group
-
var
g7: () ⇒ Group
-
var
g8: () ⇒ Group
-
var
g9: () ⇒ Group
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
implicit
def
namedGroup(s: String): NamedGroup
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This trait can be used to standardize names for groups of examples in an acceptance specification.
class MySpecification extends Examples { def is = "first example in first group" ! g1().e1 "second example in first group" ! g1().e2 p "first example in second group" ! g2().e1 "second example in second group" ! g2().e2 }
trait Examples extends Groups with Matchers { "first group of examples" - new g1 { e1 - ok e2 - ok } "second group of examples" - new g2 { e1 - ok e2 - ok } }
It is important to notice that the examples must be called with
g1().e1so as to create a newg1trait instance with new local variables for the examplee1. If this is not required, theGroupedtrait can be used instead