trait
Grouped extends AnyRef
Type Members
-
class
NamedGroup extends AnyRef
-
trait
g1 extends Group
-
trait
g10 extends Group
-
trait
g11 extends Group
-
trait
g12 extends Group
-
trait
g13 extends Group
-
trait
g14 extends Group
-
trait
g15 extends Group
-
trait
g16 extends Group
-
trait
g17 extends Group
-
trait
g18 extends Group
-
trait
g19 extends Group
-
trait
g2 extends Group
-
trait
g20 extends Group
-
trait
g21 extends Group
-
trait
g22 extends Group
-
trait
g3 extends Group
-
trait
g4 extends Group
-
trait
g5 extends Group
-
trait
g6 extends Group
-
trait
g7 extends Group
-
trait
g8 extends Group
-
trait
g9 extends Group
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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
final
def
getClass(): java.lang.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 Grouped 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