org.specs.matcher

trait MockMatchers

[source: org/specs/matcher/MockMatchers.scala]

trait MockMatchers
extends AnyRef
Matcher for mocks
Direct Known Subclasses:
Matchers, Mocker

Method Summary
def any [T] : T
any[Type] can be used to match any parameter in a mock call
Usage: mock.callMethodWith(any[String])
def beMet : Matcher[Protocol]
Matches if the expected messages are properly received
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def beMet : Matcher[Protocol]
Matches if the expected messages are properly received

def any[T] : T
any[Type] can be used to match any parameter in a mock call
Usage: mock.callMethodWith(any[String])


Copyright (c) 2007-2008. All Rights Reserved.