Delegates to Mockito.atLeast()
, it's only here to expose the full Mockito API
Delegates to Mockito.atLeast()
, it's only here to expose the full Mockito API
Delegates to Mockito.atLeastOnce()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.atLeastOnce()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.atMost()
, it's only here to expose the full Mockito API
Delegates to Mockito.atMost()
, it's only here to expose the full Mockito API
Delegates to Mockito.calls()
, it's only here to expose the full Mockito API
Delegates to Mockito.calls()
, it's only here to expose the full Mockito API
Delegates to Mockito.doAnswer()
, it's only here to expose the full Mockito API
Delegates to Mockito.doAnswer()
, it's only here to expose the full Mockito API
Delegates to Mockito.doCallRealMethod()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.doCallRealMethod()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.doNothing()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.doNothing()
, it removes the parenthesis to have a cleaner API
Delegates the call to Mockito.doReturn(toBeReturned, toBeReturnedNext)
but fixes the following compiler issue that happens because the overloaded vararg on the Java side
Delegates the call to Mockito.doReturn(toBeReturned, toBeReturnedNext)
but fixes the following compiler issue that happens because the overloaded vararg on the Java side
Error:(33, 25) ambiguous reference to overloaded definition, both method doReturn in class Mockito of type (x$1: Any, x$2: Object*)org.mockito.stubbing.Stubber and method doReturn in class Mockito of type (x$1: Any)org.mockito.stubbing.Stubber match argument types (`Type`)
Delegates to Mockito.doThrow(type: Class[T])
It provides a nicer API as you can, for instance, do doThrow[Throwable] instead of doThrow(classOf[Throwable])
Delegates to Mockito.doThrow(type: Class[T])
It provides a nicer API as you can, for instance, do doThrow[Throwable] instead of doThrow(classOf[Throwable])
Delegates to Mockito.doThrow
, it's only here so we expose all the Mockito API
on a single place
Delegates to Mockito.doThrow
, it's only here so we expose all the Mockito API
on a single place
Delegates to Mockito.ignoreStubs()
, it's only here to expose the full Mockito API
Delegates to Mockito.ignoreStubs()
, it's only here to expose the full Mockito API
Delegates to Mockito.inOrder()
, it's only here to expose the full Mockito API
Delegates to Mockito.inOrder()
, it's only here to expose the full Mockito API
Delegates to Mockito.mock(type: Class[T], name: String)
It provides a nicer API as you can, for instance, do mock[MyClass](name)
instead of mock(classOf[MyClass], name)
Delegates to Mockito.mock(type: Class[T], name: String)
It provides a nicer API as you can, for instance, do mock[MyClass](name)
instead of mock(classOf[MyClass], name)
It also pre-stub the mock so the compiler-generated methods that provide the values for the default arguments
are called, ie:
given def iHaveSomeDefaultArguments(noDefault: String, default: String = "default value")
without this fix, if you call it as iHaveSomeDefaultArguments("I'm not gonna pass the second argument")
then you could have not verified it like
verify(aMock).iHaveSomeDefaultArguments("I'm not gonna pass the second argument", "default value")
as the value for the second parameter would have been null...
Delegates to Mockito.mock(type: Class[T], mockSettings: MockSettings)
It provides a nicer API as you can, for instance, do mock[MyClass](mockSettings)
instead of mock(classOf[MyClass], mockSettings)
Delegates to Mockito.mock(type: Class[T], mockSettings: MockSettings)
It provides a nicer API as you can, for instance, do mock[MyClass](mockSettings)
instead of mock(classOf[MyClass], mockSettings)
It also pre-stub the mock so the compiler-generated methods that provide the values for the default arguments
are called, ie:
given def iHaveSomeDefaultArguments(noDefault: String, default: String = "default value")
without this fix, if you call it as iHaveSomeDefaultArguments("I'm not gonna pass the second argument")
then you could have not verified it like
verify(aMock).iHaveSomeDefaultArguments("I'm not gonna pass the second argument", "default value")
as the value for the second parameter would have been null...
Delegates to Mockito.mock(type: Class[T], defaultAnswer: Answer[_])
It provides a nicer API as you can, for instance, do mock[MyClass](defaultAnswer)
instead of mock(classOf[MyClass], defaultAnswer)
Delegates to Mockito.mock(type: Class[T], defaultAnswer: Answer[_])
It provides a nicer API as you can, for instance, do mock[MyClass](defaultAnswer)
instead of mock(classOf[MyClass], defaultAnswer)
It also pre-stub the mock so the compiler-generated methods that provide the values for the default arguments
are called, ie:
given def iHaveSomeDefaultArguments(noDefault: String, default: String = "default value")
without this fix, if you call it as iHaveSomeDefaultArguments("I'm not gonna pass the second argument")
then you could have not verified it like
verify(aMock).iHaveSomeDefaultArguments("I'm not gonna pass the second argument", "default value")
as the value for the second parameter would have been null...
Delegates to Mockito.mock(type: Class[T])
It provides a nicer API as you can, for instance, do mock[MyClass]
instead of mock(classOf[MyClass])
Delegates to Mockito.mock(type: Class[T])
It provides a nicer API as you can, for instance, do mock[MyClass]
instead of mock(classOf[MyClass])
It also pre-stub the mock so the compiler-generated methods that provide the values for the default arguments
are called, ie:
given def iHaveSomeDefaultArguments(noDefault: String, default: String = "default value")
without this fix, if you call it as iHaveSomeDefaultArguments("I'm not gonna pass the second argument")
then you could have not verified it like
verify(aMock).iHaveSomeDefaultArguments("I'm not gonna pass the second argument", "default value")
as the value for the second parameter would have been null...
Delegates to Mockito.mockingDetails()
, it's only here to expose the full Mockito API
Delegates to Mockito.mockingDetails()
, it's only here to expose the full Mockito API
Delegates to Mockito.never()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.never()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.only()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.only()
, it removes the parenthesis to have a cleaner API
Delegates to Mockito.reset(T... mocks)
, but restores the default stubs that
deal with default argument values
Delegates to Mockito.reset(T... mocks)
, but restores the default stubs that
deal with default argument values
Delegates to Mockito.spy()
, it's only here to expose the full Mockito API
Delegates to Mockito.spy()
, it's only here to expose the full Mockito API
Creates a "spy" in a way that supports lambdas and anonymous classes as they don't work with the standard spy as they are created as final classes by the compiler
Creates a "spy" in a way that supports lambdas and anonymous classes as they don't work with the standard spy as they are created as final classes by the compiler
Delegates to Mockito.timeout()
, it's only here to expose the full Mockito API
Delegates to Mockito.timeout()
, it's only here to expose the full Mockito API
Delegates to Mockito.times()
, it's only here to expose the full Mockito API
Delegates to Mockito.times()
, it's only here to expose the full Mockito API
Delegates to Mockito.validateMockitoUsage()
, it's only here to expose the full Mockito API
Delegates to Mockito.validateMockitoUsage()
, it's only here to expose the full Mockito API
Delegates to Mockito.verify()
, it's only here to expose the full Mockito API
Delegates to Mockito.verify()
, it's only here to expose the full Mockito API
Delegates to Mockito.verify()
, it's only here to expose the full Mockito API
Delegates to Mockito.verify()
, it's only here to expose the full Mockito API
Delegates to Mockito.verifyNoMoreInteractions(Object... mocks)
, but ignores the default stubs that
deal with default argument values
Delegates to Mockito.verifyNoMoreInteractions(Object... mocks)
, but ignores the default stubs that
deal with default argument values
Delegates to Mockito.verifyZeroInteractions()
, it's only here to expose the full Mockito API
Delegates to Mockito.verifyZeroInteractions()
, it's only here to expose the full Mockito API
Delegates to Mockito.when()
, it's only here to expose the full Mockito API
Delegates to Mockito.when()
, it's only here to expose the full Mockito API
Delegates to Mockito.withSettings()
, it's only here to expose the full Mockito API
Delegates to Mockito.withSettings()
, it's only here to expose the full Mockito API
Simple object to allow the usage of the trait without mixing it in