Class whose instances represent an invocation of a private method.
Class whose instances represent an invocation of a private method. Instances of this
class contain the name of the private method (methodName
) and the arguments
to pass to it during the invocation (args
).
The type parameter, T
, is the return type of the private method.
NullArgumentException
if methodName
is null
Class used via an implicit conversion to enable private methods to be tested.
Class used via an implicit conversion to enable private methods to be tested.
Represent a private method, whose apply method returns an Invocation
object that
records the name of the private method to invoke, and any arguments to pass to it when invoked.
Represent a private method, whose apply method returns an Invocation
object that
records the name of the private method to invoke, and any arguments to pass to it when invoked.
The type parameter, T
, is the return type of the private method.
NullArgumentException
if methodName
is null
Contains a factory method for instantiating PrivateMethod
objects.
Contains a factory method for instantiating PrivateMethod
objects.
Implicit conversion from AnyRef
to Invoker
, used to enable
assertions testing of private methods.
Implicit conversion from AnyRef
to Invoker
, used to enable
assertions testing of private methods.
the target object on which to invoke a private method.
NullArgumentException
if target
is null
.
Companion object that facilitates the importing of
PrivateMethodTester
members as an alternative to mixing it in. One use case is to importPrivateMethodTester
members so you can use them in the Scala interpreter: