|
specs 1.2.3 API
|
|
org/specs/mock/inSequence.scala]
class
inSequence(repetition : CallConstraint)
extends ProtocolTypeinSequence protocol type will try to consume expected calls
in sequence. It will not consume unexpected calls.repetition parameter specifying how many expected calls are supposed to happen:| Method Summary | |
def
|
constraints : java.lang.String |
def
|
consume
(exp : scala.List[SpecifiedCall], rec : scala.List[ReceivedCall]) : (scala.List[SpecifiedCall], scala.List[ReceivedCall])
Tries to match expected calls with received calls in sequence
until the
repetition parameter is satisfied.Before doing so, it sets the repetition number on expected calls, so that they know when to stop matching received calls (especially for atLeast and atMost constraints). If consumed received calls are not in the same order as their respective expected calls it resets them so that the received calls are not consumed and the expected calls are not passed |
| Methods inherited from ProtocolType | |
| failures, expectedDefs, receivedMessages, equals |
| Methods inherited from AnyRef | |
| getClass, hashCode, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
def
constraints : java.lang.String
def
consume(exp : scala.List[SpecifiedCall], rec : scala.List[ReceivedCall]) : (scala.List[SpecifiedCall], scala.List[ReceivedCall])
repetition parameter is satisfied.|
specs 1.2.3 API
|
|