com.bdmendes.smockito
Members list
Packages
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MockedMethod.type
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 Objecttrait Matchableclass Any
Configures a mocked method's response based on its one-based call number and arguments. Calls with an unmatched call number or arguments throw an exception.
Configures a mocked method's response based on its one-based call number and arguments. Calls with an unmatched call number or arguments throw an exception.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Arguments, as required by stubs and yielded by verifications, are of the most convenient shape to the caller: a scalar for single argument methods and a named tuple for multi-argument methods.
Arguments, as required by stubs and yielded by verifications, are of the most convenient shape to the caller: a scalar for single argument methods and a named tuple for multi-argument methods.
Attributes
A Mock represents a type mocked by Mockito.
A Mock represents a type mocked by Mockito.
Attributes
The internal representation of a method to mock. The compiler synthesizes conversions from functions and values to this type, for up to 22 parameters, via implicit conversions.
The internal representation of a method to mock. The compiler synthesizes conversions from functions and values to this type, for up to 22 parameters, via implicit conversions.
Attributes
A Spy is a mock whose answer is to forward all method calls to a real instance.
A Spy is a mock whose answer is to forward all method calls to a real instance.