|
specs 1.2.3 API
|
|
org/specs/mock/ProtocolType.scala]
abstract
class
ProtocolType(repetition : CallConstraint)
extends AnyRefProtocolType specifies if a sequence of ReceivedCall can match
a sequence of SpecifiedCall| Method Summary | |
abstract def
|
constraints
: java.lang.String
A string describing the constraints of this protocol type
It must be implemented by subclasses to provide a meaningful name to describe the protocol in error messages |
abstract def
|
consume
(expected : scala.List[SpecifiedCall], received : scala.List[ReceivedCall]) : (scala.List[SpecifiedCall], scala.List[ReceivedCall])
Consumes the expected messages with the actual received ones
If the expected messages are not all consumed, there will be a failure message |
override def
|
equals (other : Any) : Boolean |
def
|
expectedDefs (expected : scala.List[SpecifiedCall]) : java.lang.String |
def
|
failures (expected : scala.List[SpecifiedCall], received : scala.List[ReceivedCall], exclusive : Boolean) : java.lang.String |
def
|
receivedMessages (received : scala.List[ReceivedCall]) : java.lang.String |
| 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 |
abstract
def
constraints : java.lang.String
abstract
def
consume(expected : scala.List[SpecifiedCall], received : scala.List[ReceivedCall]) : (scala.List[SpecifiedCall], scala.List[ReceivedCall])
def
failures(expected : scala.List[SpecifiedCall], received : scala.List[ReceivedCall], exclusive : Boolean) : java.lang.String
def
expectedDefs(expected : scala.List[SpecifiedCall]) : java.lang.String
def
receivedMessages(received : scala.List[ReceivedCall]) : java.lang.String
|
specs 1.2.3 API
|
|