Forwards a message to an implicit Informer
, preceded by "And ".
Forwards a message to an implicit Informer
, preceded by "And ".
the message to forward to the passed informer
the Informer
to which to forward the message
Forwards a message to an implicit Informer
, preceded by "Given.
Forwards a message to an implicit Informer
, preceded by "Given."
the message to forward to the passed informer
the Informer
to which to forward the message
Forwards a message to an implicit Informer
, preceded by "Then ".
Forwards a message to an implicit Informer
, preceded by "Then ".
the message to forward to the passed informer
the Informer
to which to forward the message
Forwards a message to an implicit Informer
, preceded by "When ".
Forwards a message to an implicit Informer
, preceded by "When ".
the message to forward to the passed informer
the Informer
to which to forward the message
The lower case form of and
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, And
, instead.
The lower case form of and
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, And
, instead.
Please use And(message: String)(implicit info: Informer) instead.
The lower case form of given
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, Given
, instead.
The lower case form of given
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, Given
, instead.
Please use Given(message: String)(implicit info: Informer) instead.
The lower case form of then
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, Then
, instead.
The lower case form of then
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, Then
, instead.
Please use Then(message: String)(implicit info: Informer) instead.
The lower case form of when
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, When
, instead.
The lower case form of when
was
deprecated because using then
as an identifier was deprecated in Scala 2.10.
Please use the upper case form, When
, instead.
Please use When(message: String)(implicit info: Informer) instead.
Trait that contains methods named
given
,when
,then
, andand
, which take a string message and implicitInformer
, and forward the message to the informer.Here's an example:
If you run this
FlatSpec
from the interpreter, you will see the following output:scala> new SetSpec execute A mutable Set - should allow an element to be added + Given an empty mutable Set + When an element is added + Then the Set should have size 1 + And the Set should contain the added element + That's all folks!
Note: The lower case forms of
given
,when
,then
andand
were deprecated in ScalaTest because usingthen
as an identifier was deprecated in Scala 2.10.