A B C D E F G H I M N O P Q R S T U V W

A

add(Class<?>...) - Method in class se.mockachino.MockSettings
Lets the mock implement additional interfaces.
add(Class<?>...) - Static method in class se.mockachino.Settings
 
addCall(Object, MockachinoMethod, Object[], StackTraceElement[]) - Method in class se.mockachino.MockData
Add a call on the mock.
after(MockPoint) - Static method in class se.mockachino.Mockachino
Verify that calls happened at or after a point in time.
afterLastCall() - Method in class se.mockachino.order.OrderingContext
 
and(Matcher<T>...) - Static method in class se.mockachino.matchers.Matchers
Matches the parameter if and only if all the matchers match.
any(Class<T>) - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyBoolean() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyByte() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyChar() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyDouble() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyFloat() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyInt() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyLong() - Static method in class se.mockachino.matchers.Matchers
Always matches.
anyShort() - Static method in class se.mockachino.matchers.Matchers
Always matches.
atLastCall() - Method in class se.mockachino.order.OrderingContext
 

B

before(MockPoint) - Static method in class se.mockachino.Mockachino
Verify that calls happened at or before a point in time.
beforeLastCall() - Method in class se.mockachino.order.OrderingContext
 
between(MockPoint, MockPoint) - Static method in class se.mockachino.Mockachino
Verify that calls happened between (inclusive) two points in time.
BetweenVerifyContext - Class in se.mockachino.order
 
BetweenVerifyContext(MockPoint, MockPoint) - Constructor for class se.mockachino.order.BetweenVerifyContext
 
BIG_BANG - Static variable in class se.mockachino.Mockachino
 
BIG_CRUNCH - Static variable in class se.mockachino.Mockachino
 

C

CallHandler - Interface in se.mockachino
 
canMock(Class) - Static method in class se.mockachino.Mockachino
Checks if a class is mockable by Mockachino.
contains(String) - Static method in class se.mockachino.matchers.Matchers
Matches if the parameter value contains s.

D

DEEP_MOCK - Static variable in class se.mockachino.Mockachino
 
DEFAULT_VALUES - Static variable in class se.mockachino.Mockachino
 
deleteLastInvocation() - Method in class se.mockachino.MockData
 

E

endsWith(String) - Static method in class se.mockachino.matchers.Matchers
Matches if the parameter value ends with s.
eq(T) - Static method in class se.mockachino.matchers.Matchers
Compares value with the actual parameter based on equality.
equals(MethodCall) - Method in class se.mockachino.MethodCall
 
EQUALS - Static variable in class se.mockachino.util.MockachinoMethod
 
equals(Object) - Method in class se.mockachino.util.MockachinoMethod
 

F

fallback(CallHandler) - Method in class se.mockachino.MockSettings
Sets the fallback handler.
fallback(CallHandler) - Static method in class se.mockachino.Settings
 
find(Class, String) - Static method in class se.mockachino.util.MockachinoMethod
 

G

getArguments() - Method in class se.mockachino.MethodCall
 
getCallNumber() - Method in class se.mockachino.order.MockPoint
 
getCalls(MockPoint, MockPoint) - Method in class se.mockachino.MockData
Gets a list of all the method invocations made for the mock object between (inclusive) two points in time.
getCalls(Object) - Method in class se.mockachino.order.BetweenVerifyContext
 
getCurrentPoint() - Static method in class se.mockachino.Mockachino
Gets the current point on time on the call history.
getData(T) - Static method in class se.mockachino.Mockachino
Get the metadata for mock.
getExtraInterfaces() - Method in class se.mockachino.MockData
Get the set of additionally implemented interfaces by the mock.
getExtraInterfaces() - Method in class se.mockachino.MockSettings
 
getFallback() - Method in class se.mockachino.MockSettings
 
getInterface() - Method in class se.mockachino.MockData
Get the interface of the mock
getInvocations() - Method in class se.mockachino.MockData
Gets a list of all the method invocations made for the mock object
getMethod() - Method in class se.mockachino.MethodCall
 
getMethod() - Method in class se.mockachino.util.MockachinoMethod
 
getMethods() - Method in class se.mockachino.MockData
 
getName() - Method in class se.mockachino.MockData
 
getName() - Method in class se.mockachino.MockSettings
 
getName() - Method in class se.mockachino.util.MockachinoMethod
 
getObservers(MockachinoMethod) - Method in class se.mockachino.MockData
Get all observers hooked to a specific method on the mock
getParameters() - Method in class se.mockachino.util.MockachinoMethod
 
getReturnType() - Method in class se.mockachino.util.MockachinoMethod
 
getStubs(MockachinoMethod) - Method in class se.mockachino.MockData
Get all stubs for the mock and the method
getType() - Method in interface se.mockachino.matchers.matcher.Matcher
 
getTypeLiteral() - Method in class se.mockachino.MockData
 

H

HASHCODE - Static variable in class se.mockachino.util.MockachinoMethod
 
hashCode() - Method in class se.mockachino.util.MockachinoMethod
 

I

InOrderVerify - Class in se.mockachino.order
 
InOrderVerify(OrderingContext, int, MockPoint, MockPoint) - Constructor for class se.mockachino.order.InOrderVerify
 
invoke(Object, MethodCall) - Method in interface se.mockachino.CallHandler
 
invoke(Object, Object[]) - Method in class se.mockachino.util.MockachinoMethod
 
isQuick() - Method in class se.mockachino.MockSettings
 
isToStringCall() - Method in class se.mockachino.util.MockachinoMethod
 

M

m(Matcher<T>) - Static method in class se.mockachino.matchers.Matchers
Shortcut for Matchers.match(se.mockachino.matchers.matcher.Matcher)
mAnd(Matcher<T>...) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if all the given matchers match
mAny(Class<T>) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyBoolean() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyByte() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyChar() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyDouble() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyFloat() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyInt() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyLong() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
mAnyShort() - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that always matches.
match(Matcher<T>) - Static method in class se.mockachino.matchers.Matchers
Matches using a custom matcher.
matchEq(T, Class<T>) - Static method in class se.mockachino.matchers.MatchersBase
 
Matcher<T> - Interface in se.mockachino.matchers.matcher
 
Matchers - Class in se.mockachino.matchers
Matchers is a utility class, containing a lot of useful default matchers.
Matchers() - Constructor for class se.mockachino.matchers.Matchers
 
MatchersBase - Class in se.mockachino.matchers
This class contain a lot of built in matchers.
MatchersBase() - Constructor for class se.mockachino.matchers.MatchersBase
 
matches(T) - Method in interface se.mockachino.matchers.matcher.Matcher
 
mContains(String) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if the argument contains s.
mEndsWith(String) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if the argument ends with s.
mEq(T) - Static method in class se.mockachino.matchers.MatchersBase
Returns a new matcher that compares the value with the actual parameter based on equality.
MethodCall - Class in se.mockachino
 
MethodCall(MockachinoMethod, Object[]) - Constructor for class se.mockachino.MethodCall
 
mNot(Matcher<T>) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that's the negation of the specified matcher.
mock(Class<T>) - Static method in class se.mockachino.Mockachino
Creates a new mock with a default handler and default settings.
mock(<any>) - Static method in class se.mockachino.Mockachino
Creates a new mock with a default handler and default settings.
mock(Class<T>, MockSettings) - Static method in class se.mockachino.Mockachino
Creates a new mock with specified settings.
mock(<any>, MockSettings) - Static method in class se.mockachino.Mockachino
Creates a new mock with specified settings.
Mockachino - Class in se.mockachino
This is the main entry point of all your mocking needs.
Mockachino() - Constructor for class se.mockachino.Mockachino
 
MockachinoMethod - Class in se.mockachino.util
 
MockachinoMethod(Method) - Constructor for class se.mockachino.util.MockachinoMethod
 
MockachinoMethod(String, Class<Object>[], Class<?>) - Constructor for class se.mockachino.util.MockachinoMethod
 
MockData<T> - Class in se.mockachino
 
MockData(Class<T>, Type, Set<Class<?>>, String) - Constructor for class se.mockachino.MockData
 
MockPoint - Class in se.mockachino.order
 
MockPoint(int) - Constructor for class se.mockachino.order.MockPoint
 
MockSettings - Class in se.mockachino
 
MockSettings() - Constructor for class se.mockachino.MockSettings
 
mockType(Type, MockSettings) - Static method in class se.mockachino.Mockachino
 
mOr(Matcher<T>...) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if any of the given matchers match
mRegexp(String) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches against a regular expression
mSame(T) - Static method in class se.mockachino.matchers.MatchersBase
Returns a new matcher that compares the identity of the value with the actual parameter
mStartsWith(String) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if the argument starts with s.
mType(Class<T>, Class<?>...) - Static method in class se.mockachino.matchers.MatchersBase
Return a new matcher that matches if the argument is an instance of any of the classes.

N

name(String) - Method in class se.mockachino.MockSettings
Sets the name of the mock
name(String) - Static method in class se.mockachino.Settings
 
newAlias() - Static method in class se.mockachino.Mockachino
 
newOrdering() - Static method in class se.mockachino.Mockachino
Creates a new ordering context which is used to verify method calls in order.
newOrdering() - Method in class se.mockachino.order.BetweenVerifyContext
Creates a new ordering context which is used to verify method calls in order.
newSettings() - Static method in class se.mockachino.Settings
 
not(Matcher<T>) - Static method in class se.mockachino.matchers.Matchers
Negates the matching of the specified matcher.
notEq(T) - Static method in class se.mockachino.matchers.Matchers
Matches negation of Matchers.eq(T)
notQuick() - Method in class se.mockachino.MockSettings
Sets the mock to not be quick.
notQuick() - Static method in class se.mockachino.Settings
 
notSame(T) - Static method in class se.mockachino.matchers.Matchers
Matches negation of Matchers.same(T)
NULL - Static variable in class se.mockachino.util.MockachinoMethod
 

O

ObserverAdder - Class in se.mockachino.observer
 
ObserverAdder(CallHandler) - Constructor for class se.mockachino.observer.ObserverAdder
 
observeWith(CallHandler) - Static method in class se.mockachino.Mockachino
Adds an observer to a specific method call.
on(T) - Method in class se.mockachino.observer.ObserverAdder
 
on(T) - Method in class se.mockachino.order.InOrderVerify
 
on(T) - Method in class se.mockachino.stub.Stubber
 
on(T) - Method in class se.mockachino.verifier.VerifyRangeStart
 
onAnyMethod(Object) - Method in class se.mockachino.stub.Stubber
 
onAnyMethod(Object) - Method in class se.mockachino.verifier.VerifyRangeStart
 
onMethod(Object, MockachinoMethod, MethodMatcher) - Method in class se.mockachino.stub.Stubber
 
onMethod(Object, MethodMatcher) - Method in class se.mockachino.verifier.VerifyRangeStart
 
onMethodWithAnyArgument(Object, MockachinoMethod) - Method in class se.mockachino.stub.Stubber
 
onMethodWithAnyArgument(Object, MockachinoMethod) - Method in class se.mockachino.verifier.VerifyRangeStart
 
or(Matcher<T>...) - Static method in class se.mockachino.matchers.Matchers
Matches the parameter if any of the matchers match.
OrderingContext - Class in se.mockachino.order
 
OrderingContext(MockPoint, MockPoint) - Constructor for class se.mockachino.order.OrderingContext
 

P

PRIMITIVE_VALUES - Static variable in class se.mockachino.Mockachino
 

Q

quick() - Method in class se.mockachino.MockSettings
Sets the mock to be quick.
quick() - Static method in class se.mockachino.Settings
 

R

regexp(String) - Static method in class se.mockachino.matchers.Matchers
Matches if the parameter value matches the regular expression.
resetCalls() - Method in class se.mockachino.MockData
Clear the list of invocations
resetObservers() - Method in class se.mockachino.MockData
Remove all observers from the mock
resetStubs() - Method in class se.mockachino.MockData
Remove all stubbing on the mock

S

same(T) - Static method in class se.mockachino.matchers.Matchers
Compares value with the actual parameter based on object identity.
se.mockachino - package se.mockachino
 
se.mockachino.exceptions - package se.mockachino.exceptions
 
se.mockachino.matchers - package se.mockachino.matchers
 
se.mockachino.matchers.matcher - package se.mockachino.matchers.matcher
 
se.mockachino.observer - package se.mockachino.observer
 
se.mockachino.order - package se.mockachino.order
 
se.mockachino.stub - package se.mockachino.stub
 
se.mockachino.util - package se.mockachino.util
 
se.mockachino.verifier - package se.mockachino.verifier
 
Settings - Class in se.mockachino
Shortcut for creating mock settings.
Settings() - Constructor for class se.mockachino.Settings
 
setupMocks(Object) - Static method in class se.mockachino.Mockachino
 
spy(T) - Static method in class se.mockachino.Mockachino
Creates a new mock with class impl.getClass() with the impl as a default handler.
spy(T, MockSettings) - Static method in class se.mockachino.Mockachino
Creates a new mock with class impl.getClass() with the impl as a default handler, and the specified settings.
spyOn(Object) - Method in class se.mockachino.MockSettings
Sets the fallback handler to be a spy of impl
spyOn(Object) - Static method in class se.mockachino.Settings
 
startsWith(String) - Static method in class se.mockachino.matchers.Matchers
Matches if the parameter value starts with s.
stubAnswer(CallHandler) - Static method in class se.mockachino.Mockachino
Stubs a method call with a specific answer strategy.
Stubber - Class in se.mockachino.stub
 
Stubber(CallHandler, StubVerifier) - Constructor for class se.mockachino.stub.Stubber
 
stubReturn(Object) - Static method in class se.mockachino.Mockachino
Stubs a method call to return a specific value.
stubReturn(Object...) - Static method in class se.mockachino.Mockachino
 
stubThrow(Throwable) - Static method in class se.mockachino.Mockachino
Stubs a method call to throw an exception.

T

toString() - Method in class se.mockachino.MethodCall
 
toString() - Method in class se.mockachino.order.MockPoint
 
toString() - Method in class se.mockachino.util.MockachinoMethod
 
type(Class<T>, Class<?>...) - Static method in class se.mockachino.matchers.Matchers
Matches if the argument is an instance of any of the classes.

U

UsageError - Exception in se.mockachino.exceptions
 
UsageError(String) - Constructor for exception se.mockachino.exceptions.UsageError
 

V

VerificationError - Exception in se.mockachino.exceptions
 
VerificationError(String) - Constructor for exception se.mockachino.exceptions.VerificationError
 
verify() - Method in class se.mockachino.order.OrderingContext
Verifies that a method call is called at least once.
verifyAtLeast(int) - Static method in class se.mockachino.Mockachino
Verifies that a method call is called at least a specific number of times.
verifyAtLeast(int) - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is called at least a specific number of times.
verifyAtLeast(int) - Method in class se.mockachino.order.OrderingContext
Verifies that a method call is called at least min number of times.
verifyAtMost(int) - Static method in class se.mockachino.Mockachino
Verifies that a method call is called at most a specific number of times.
verifyAtMost(int) - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is called at most a specific number of times.
verifyExactly(int) - Static method in class se.mockachino.Mockachino
Verifies that a method call is called an exact number of times.
verifyExactly(int) - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is called an exact number of times.
verifyNever() - Static method in class se.mockachino.Mockachino
Verifies that a method call is never called.
verifyNever() - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is never called.
verifyOnce() - Static method in class se.mockachino.Mockachino
Verifies that a method call is only called exactly once.
verifyOnce() - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is only called exactly once.
verifyRange(int, int) - Static method in class se.mockachino.Mockachino
Verifies that a method call is called between min and max times, inclusive.
verifyRange(int, int) - Method in class se.mockachino.order.BetweenVerifyContext
Verifies that a method call is called between min and max times, inclusive.
VerifyRangeStart - Class in se.mockachino.verifier
 
VerifyRangeStart(int, int) - Constructor for class se.mockachino.verifier.VerifyRangeStart
 
VerifyRangeStart(int, int, MockPoint, MockPoint) - Constructor for class se.mockachino.verifier.VerifyRangeStart
 

W

when(T) - Static method in class se.mockachino.Mockachino
 
withTimeout(long) - Method in class se.mockachino.verifier.VerifyRangeStart
 

A B C D E F G H I M N O P Q R S T U V W