org.specs.specification.DefaultExampleExpectationsListener

trait DefaultExampleExpectationsListener

trait DefaultExampleExpectationsListener

 extends ExampleExpectationsListener


Trait adding an expectation on a default unused example. It is used to provide a default behavior when examples are not necessary, i.e. when using SpecsMatchers only.


Source: ExpectationsListener.scala(67)

Direct Known Subclasses

SpecsMatchers,

 Fields

addExpectation override def addExpectation Example
forExample def forExample
create a new example
Example
lastExample def lastExample
retrieve the last created example
Option[Example]

 Methods

!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
addExpectation override def addExpectation[T](expectable : Option[Expectable[T]])
Here we don't try to set the expectation on the default example since we want the expectation to execute right away
Example
anyToExpectationCounter implicit def anyToExpectationCounter[T](a : => T)
Adds an isExpectation method to any block of code (mock expectation, scalacheck property) to better count the number of expectations
ExpectationCounter[T] ExpectationsListener
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
isExpectation def isExpectation[T](a : => T)
Declares a block of code to count as an expectation
T ExpectationsListener
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.