com.bdmendes.smockito

Members list

Type members

Classlikes

object MockedMethod

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
trait Smockito

The trait to mix in for using Smockito facilities in a specification. It includes the mock and spy methods for creating mocks, and the various syntax extensions on them, such as on, calls and times. Those extensions expect method references via context functions with a Mock context parameter, retrievable via the it method.

The trait to mix in for using Smockito facilities in a specification. It includes the mock and spy methods for creating mocks, and the various syntax extensions on them, such as on, calls and times. Those extensions expect method references via context functions with a Mock context parameter, retrievable via the it method.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Smockito

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Smockito.type

Types

opaque type Mock[+T]

A Mock represents a type mocked by Mockito, with a default answer strategy of throwing on unstubbed methods.

A Mock represents a type mocked by Mockito, with a default answer strategy of throwing on unstubbed methods.

Attributes

opaque type MockedMethod[A <: Tuple, R]

The internal representation of a method to mock. The compiler synthesizes conversions from regular function types to this type, for up to 22 parameters, via implicit conversions.

The internal representation of a method to mock. The compiler synthesizes conversions from regular function types to this type, for up to 22 parameters, via implicit conversions.

Attributes

type Pack[A <: Tuple] = A match { case EmptyTuple => Unit case Tuple1[h] => h case Tuple => A }

A Tuple proxy, especially relevant in the case of Tuple1[A], treated as A.

A Tuple proxy, especially relevant in the case of Tuple1[A], treated as A.

Attributes

opaque type Spy[+T]

A Spy is a copied instance, for interception purposes. All methods of this instance behave as the real instance, unless stubbed otherwise.

A Spy is a copied instance, for interception purposes. All methods of this instance behave as the real instance, unless stubbed otherwise.

Attributes