CallHandler

eu.monniot.scala3mock.handlers.CallHandler
See theCallHandler companion object
class CallHandler[R](val target: FakeFunction, val argumentMatcher: Product => Boolean)(implicit evidence$1: Default[R]) extends Handler

Attributes

Companion:
object
Graph
Supertypes
trait Handler
class Object
trait Matchable
class Any
Known subtypes
class CallHandler0[R]
class CallHandler1[T1, R]
class CallHandler10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]
class CallHandler2[T1, T2, R]
class CallHandler3[T1, T2, T3, R]
class CallHandler4[T1, T2, T3, T4, R]
class CallHandler5[T1, T2, T3, T4, T5, R]
class CallHandler6[T1, T2, T3, T4, T5, T6, R]
class CallHandler7[T1, T2, T3, T4, T5, T6, T7, R]
class CallHandler8[T1, T2, T3, T4, T5, T6, T7, T8, R]
class CallHandler9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

Members list

Concise view

Type members

Types

type Derived <: CallHandler[R]

Value members

Concrete methods

def exactly(count: Int): Derived
def handle(call: Call): Option[Any]
def isExhausted: Boolean
def isSatisfied: Boolean
def onCall(handler: Product => R): Derived
def repeated(range: Range): Derived
def repeated(atLeast: Int, atMost: Int): Derived
def reset(): Unit
def returning(value: R): Derived
def returns(value: R): Derived
def throwing(e: Throwable): Derived
def throws(e: Throwable): Derived
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
def verify(call: Call): Boolean

Concrete fields

var actualCalls: Int
val argumentMatcher: Product => Boolean
var expectedCalls: Range
var onCallHandler: Product => R