org.scalatest

trait GivenWhenThen

[source: org/scalatest/GivenWhenThen.scala]

trait GivenWhenThen
extends AnyRef
Trait that contains methods named given, when, then, and and, which take a string message and implicit Informer, and forward the message to the informer.
Author
Bill Venners
Direct Known Subclasses:
GivenWhenThen

Method Summary
def and (message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "And ".
def given (message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "Given."
def then (message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "Then ".
def when (message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "When ".
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def given(message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "Given."
Parameters
message - the message to forward to the passed informer
info - the Informer to which to forward the message

def when(message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "When ".
Parameters
message - the message to forward to the passed informer
info - the Informer to which to forward the message

def then(message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "Then ".
Parameters
message - the message to forward to the passed informer
info - the Informer to which to forward the message

def and(message : java.lang.String)(implicit info : Informer) : Unit
Forwards a message to an implicit Informer, preceded by "And ".
Parameters
message - the message to forward to the passed informer
info - the Informer to which to forward the message


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.