org.specs.mock.exactlyN

class exactlyN

case class exactlyN(val n : Int)

 extends CallConstraint with Product


This class expects exactly n received calls matching a specified call


Companion: exactlyN

Source: CallConstraint.scala(31)

 Constructors

def this(n : Int)

 Fields

expectation def expectation
[details]
return
- a description of what is expected by this constraint
String
productArity override def productArity Int
productPrefix override def productPrefix String

 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
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals override def equals(arg0 : Any) Boolean
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode override def hashCode Int
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
productElement override def productElement(arg0 : Int) Any
stop def stop(n : Int)
By default the received message consumption stops when the constraint is verified excepted for the atLeast constraint which is "greedy" and tries to consume as many calls as possible [details]
return
- true if the protocol using this constraint can stop consuming calls
Boolean CallConstraint
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString override def toString String
verifies def verifies(size : Int)
[details]
return
- true if the constraint is verified after numberOfCalls calls
Boolean
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-2008. All Rights Reserved.