Trait

org.specs2.mock.mockito

FunctionArgumentsLowImplicits

Related Doc: package mockito

Permalink

trait FunctionArgumentsLowImplicits extends ArgThat with Expectations

This trait allows to specify functions as arguments in mocked methods.

It uses a pair of (arguments, expected result) to specify what was the passed function:

function2.call((i:Int, d: Double) => (i + d).toString) there was one(function2).call((1, 3.0) -> "4.0")

anyFunctionN will just match any function with n arguments

Linear Supertypes
Expectations, ExpectationsDescription, TypedEqual, ExpectationsCreation, MatchResultStackTrace, ArgThat, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FunctionArgumentsLowImplicits
  2. Expectations
  3. ExpectationsDescription
  4. TypedEqual
  5. ExpectationsCreation
  6. MatchResultStackTrace
  7. ArgThat
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  2. class ExpectationDescription extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  3. class TypedEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    TypedEqual

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def anArgThat[T, U <: T](m: Matcher[U]): T

    Permalink

    allows to use a hamcrest matchers to match parameters.

    allows to use a hamcrest matchers to match parameters.

    Definition Classes
    ArgThat
  5. implicit def argThat[T, U <: T](m: Matcher[U]): T

    Permalink

    allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.

    allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.

    Definition Classes
    ArgThat
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  8. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  9. def checkResultFailure(r: ⇒ Result): Result

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  12. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  13. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  14. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  15. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  16. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Permalink
    Definition Classes
    ExpectationsDescription
  17. implicit def describeExpectation(description: String): ExpectationDescription

    Permalink
    Definition Classes
    ExpectationsDescription
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  25. implicit def matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def partialCallMatching[A, R](a: A, m: Matcher[R]): PartialFunction[A, R]

    Permalink
  30. def partialFunctionCall[A, R](a: A, r: R): PartialFunction[A, R]

    Permalink
  31. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  32. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. implicit def toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]

    Permalink
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    Permalink
    Definition Classes
    TypedEqual
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Expectations

Inherited from ExpectationsDescription

Inherited from TypedEqual

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from ArgThat

Inherited from AnyRef

Inherited from Any

Ungrouped