package stubs
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- stubs
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
class
CallLog extends AnyRef
Allows to check order of executed methods.
Allows to check order of executed methods. Should be declared before stub generation
-
abstract
type
Stub[+T] <: T
Indicates that object of type T was generated
-
trait
StubbedMethod[A, R] extends AnyRef
Representation of stubbed method with arguments.
Representation of stubbed method with arguments.
Stubs interface provides implicit conversions from selected method to StubbedMethod.
trait Foo: def foo0: Int def foo(x: Int): Int def fooBar(bar: Boolean, baz: String): String val foo = stub[Foo]
Scala 2
val foo0Stubbed: StubbedMethod[Unit, Int] = () => foo.foo0 val fooStubbed: StubbedMethod[Int, Int] = foo.foo _ val fooBarStubbed: StubbedMethod[(Boolean, String), String] = foo.fooBar _
Scala 3
val foo0Stubbed: StubbedMethod[Unit, Int] = () => foo.foo0 val fooStubbed: StubbedMethod[Int, Int] = foo.foo val fooBarStubbed: StubbedMethod[(Boolean, String), String] = foo.fooBar
- trait Stubs extends StubsBase
Value Members
- object CallLog
- object StubbedMethod
ScalaMock
This is the documentation for ScalaMock
For an overview, see org.scalamock.