A C D E G I L M N O P R S T W 
All Classes All Packages

A

addToStack(Deque<MoxyMatcher<?>>) - Method in interface com.roscopeco.moxy.api.MoxyMatcher
Called by the framework when loading this matcher to the internal stack.
ALL_METHODS - Static variable in interface com.roscopeco.moxy.api.MoxyEngine
Constant set to be passed to mock generation methods when all methods are to be mocked.
and(MoxyEngine, T...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which the supplied matchers also match that byte.
and(T...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which the supplied matchers also match that byte.
andBool(MoxyEngine, Boolean...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which the supplied matchers also match that boolean.
andBool(Boolean...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which the supplied matchers also match that boolean.
andByte(MoxyEngine, Byte...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which the supplied matchers also match that byte.
andByte(Byte...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which the supplied matchers also match that byte.
andChar(MoxyEngine, Character...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which the supplied matchers also match that char.
andChar(Character...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which the supplied matchers also match that char.
andDouble(MoxyEngine, Double...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which the supplied matchers also match that double.
andDouble(Double...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which the supplied matchers also match that double.
andFloat(MoxyEngine, Float...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which the supplied matchers also match that float.
andFloat(Float...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which the supplied matchers also match that float.
andInt(MoxyEngine, Integer...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which the supplied matchers also match that int.
andInt(Integer...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which the supplied matchers also match that int.
andLong(MoxyEngine, Long...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which the supplied matchers also match that long.
andLong(Long...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which the supplied matchers also match that long.
andShort(MoxyEngine, Short...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which the supplied matchers also match that short.
andShort(Short...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which the supplied matchers also match that short.
any() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Object in the current default Moxy engine.
any(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Object in the specified MoxyEngine.
any(MoxyEngine, Class<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
any(Class<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Convenience alias of Matchers.instanceOf(Class).
anyBool() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean in the current default Moxy engine.
anyBool(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean in the specified MoxyEngine.
anyByte() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte in the current default Moxy engine.
anyByte(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte in the specified MoxyEngine.
anyChar() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char in the current default Moxy engine.
anyChar(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char in the specified MoxyEngine.
anyDouble() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double in the current default Moxy engine.
anyDouble(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double in the specified MoxyEngine.
anyFloat() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float in the current default Moxy engine.
anyFloat(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float in the specified MoxyEngine.
anyInt() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int in the current default Moxy engine.
anyInt(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int in the specified MoxyEngine.
anyLong() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long in the current default Moxy engine.
anyLong(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long in the specified MoxyEngine.
anyOf(MoxyEngine, List<? extends T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T that appears in the supplied List.
anyOf(List<? extends T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T that appears in the supplied List.
anyOf(T...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T that appears in the supplied arguments.
anyOfBool(MoxyEngine, List<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that appears in the supplied list.
anyOfBool(Boolean...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that appears in the supplied arguments.
anyOfBool(List<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that appears in the supplied List.
anyOfByte(MoxyEngine, List<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that appears in the supplied list.
anyOfByte(Byte...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that appears in the supplied arguments.
anyOfByte(List<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that appears in the supplied List.
anyOfChar(MoxyEngine, List<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that appears in the supplied list.
anyOfChar(Character...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that appears in the supplied arguments.
anyOfChar(List<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that appears in the supplied List.
anyOfDouble(MoxyEngine, List<Double>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that appears in the supplied list.
anyOfDouble(Double...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that appears in the supplied arguments.
anyOfDouble(List<Double>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that appears in the supplied List.
anyOfFloat(MoxyEngine, List<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that appears in the supplied list.
anyOfFloat(Float...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that appears in the supplied arguments.
anyOfFloat(List<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that appears in the supplied List.
anyOfInt(MoxyEngine, List<Integer>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that appears in the supplied list.
anyOfInt(Integer...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that appears in the supplied arguments.
anyOfInt(List<Integer>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that appears in the supplied List.
anyOfLong(MoxyEngine, List<Long>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that appears in the supplied list.
anyOfLong(Long...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that appears in the supplied arguments.
anyOfLong(List<Long>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that appears in the supplied List.
anyOfShort(MoxyEngine, List<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that appears in the supplied list.
anyOfShort(Short...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that appears in the supplied arguments.
anyOfShort(List<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that appears in the supplied List.
anyShort() - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short in the current default Moxy engine.
anyShort(MoxyEngine) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short in the specified MoxyEngine.
assertMock(InvocationRunnable) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Starts verification of the mock invocation in the supplied lambda expression.
assertMock(InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts verification of the mock invocation in the supplied lambda expression using the currently-set (or default) MoxyEngine.
assertMock(MoxyEngine, InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts verification of the mock invocation in the supplied lambda expression using the specified MoxyEngine.
assertMocks(InvocationRunnable) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Starts verification of one or more mock invocations at the same time.
assertMocks(InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts verification of one or more mock invocations at the same time.
assertMocks(MoxyEngine, InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts verification of one or more mock invocations at the same time.

C

ClassDefinitionStrategy - Interface in com.roscopeco.moxy.api
A class definition strategy is used to actually define a mock class.
com.roscopeco.moxy - package com.roscopeco.moxy
The main event - this is the core of Moxy
com.roscopeco.moxy.api - package com.roscopeco.moxy.api
Moxy's public API
com.roscopeco.moxy.core - module com.roscopeco.moxy.core
Moxy is a type-safe mocking/spying framework for Java with a fluent API and built-in support for advanced features.
com.roscopeco.moxy.matchers - package com.roscopeco.moxy.matchers
Argument matchers for use with Moxy mocks.
constructMock(MoxyEngine, Class<T>, PrintStream, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the supplied MoxyEngine using a constructor call.
constructMock(Class<T>, PrintStream, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the default MoxyEngine using a constructor call.
constructMock(Class<T>, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the default MoxyEngine using a constructor call.
constructSpy(MoxyEngine, Class<T>, PrintStream, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the supplied MoxyEngine using a constructor call.
constructSpy(Class<T>, PrintStream, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the default MoxyEngine using a constructor call.
constructSpy(Class<T>, Object...) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the default MoxyEngine using a constructor call.
contains(MoxyEngine, String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument contains the specified String.
contains(String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument contains the specified String.
custom(MoxyEngine, MoxyMatcher<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against T arguments.
custom(MoxyMatcher<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against T arguments.
customBool(MoxyEngine, MoxyMatcher<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive boolean arguments (using the primitive wrapper classes and autoboxing).
customBool(MoxyMatcher<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive boolean arguments (using the primitive wrapper classes and autoboxing).
customByte(MoxyEngine, MoxyMatcher<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive byte arguments (using the primitive wrapper classes and autoboxing).
customByte(MoxyMatcher<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive byte arguments (using the primitive wrapper classes and autoboxing).
customChar(MoxyEngine, MoxyMatcher<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive char arguments (using the primitive wrapper classes and autoboxing).
customChar(MoxyMatcher<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive char arguments (using the primitive wrapper classes and autoboxing).
customDouble(MoxyEngine, MoxyMatcher<Double>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive double arguments (using the primitive wrapper classes and autoboxing).
customDouble(MoxyMatcher<Double>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive double arguments (using the primitive wrapper classes and autoboxing).
customFloat(MoxyEngine, MoxyMatcher<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive float arguments (using the primitive wrapper classes and autoboxing).
customFloat(MoxyMatcher<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive float arguments (using the primitive wrapper classes and autoboxing).
customInt(MoxyEngine, MoxyMatcher<Integer>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive int arguments (using the primitive wrapper classes and autoboxing).
customInt(MoxyMatcher<Integer>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive int arguments (using the primitive wrapper classes and autoboxing).
customLong(MoxyEngine, MoxyMatcher<Long>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive long arguments (using the primitive wrapper classes and autoboxing).
customLong(MoxyMatcher<Long>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive long arguments (using the primitive wrapper classes and autoboxing).
customShort(MoxyEngine, MoxyMatcher<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive short arguments (using the primitive wrapper classes and autoboxing).
customShort(MoxyMatcher<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Allows addition of a custom MoxyMatcher that will match against primitive short arguments (using the primitive wrapper classes and autoboxing).

D

DefaultReturnGenerator - Interface in com.roscopeco.moxy.api
Generates default return values for mocked methods.
defineClass(ClassLoader, Class<T>, byte[]) - Method in interface com.roscopeco.moxy.api.ClassDefinitionStrategy
Define a class in the manner supported by this strategy.
defineClass(ClassLoader, Class<T>, byte[]) - Method in class com.roscopeco.moxy.api.LookupClassDefinitionStrategy
 
didntThrow(Class<? extends Throwable>) - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mocked method didn't throw an exception of type throwable.
didntThrow(Throwable) - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mocked method didn't throw the given throwable instance.
didntThrowAnyException() - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mocked method didn't throw any exceptions.

E

endsWith(MoxyEngine, String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument ends with the specified String.
endsWith(String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument ends with the specified String.
eq(MoxyEngine, T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given T in the specified MoxyEngine.
eq(T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given T in the current default Moxy engine.
eqBool(boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive boolean in the current default Moxy engine.
eqBool(MoxyEngine, boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive boolean in the specified MoxyEngine.
eqByte(byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive byte in the current default Moxy engine.
eqByte(MoxyEngine, byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive byte in the specified MoxyEngine.
eqChar(char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive char in the current default Moxy engine.
eqChar(MoxyEngine, char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive char in the specified MoxyEngine.
eqDouble(double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive double in the current default Moxy engine.
eqDouble(MoxyEngine, double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive double in the specified MoxyEngine.
eqFloat(float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive float in the current default Moxy engine.
eqFloat(MoxyEngine, float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive float in the specified MoxyEngine.
eqInt(int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive int in the current default Moxy engine.
eqInt(MoxyEngine, int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive int in the specified MoxyEngine.
eqLong(long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive long in the current default Moxy engine.
eqLong(MoxyEngine, long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive long in the specified MoxyEngine.
eqShort(short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive short in the current default Moxy engine.
eqShort(MoxyEngine, short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match the given primitive short in the specified MoxyEngine.
exclusivelyInThatOrder() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verifies that the mock methods were called (with matching arguments) in the order they were called within the lambda passed to assertMocks.

G

generateDefaultReturnValue() - Method in interface com.roscopeco.moxy.api.DefaultReturnGenerator
 
get() - Method in interface com.roscopeco.moxy.api.InvocationSupplier
Run the invocation.
getDefaultClassDefinitionStrategy() - Method in interface com.roscopeco.moxy.api.MoxyEngine
Obtain the default ClassDefinitionStrategy used by this engine.
getMockClass(Class<I>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the engine's default ClassLoader.
getMockClass(Class<I>, ClassDefinitionStrategy) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy.
getMockClass(Class<I>, ClassDefinitionStrategy, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy.
getMockClass(Class<I>, ClassDefinitionStrategy, Set<Method>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then then define it using the supplied ClassDefinitionStrategy.
getMockClass(Class<I>, ClassDefinitionStrategy, Set<Method>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy.
getMockClass(Class<I>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the engine's default ClassLoader.
getMockClass(Class<I>, Set<Method>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the engine's default ClassLoader.
getMockClass(Class<I>, Set<Method>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the engine's default ClassLoader.
getMockClass(ClassLoader, Class<I>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the given ClassLoader.
getMockClass(ClassLoader, Class<I>, ClassDefinitionStrategy) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy, suggesting that the strategy use the given ClassLoader.
getMockClass(ClassLoader, Class<I>, ClassDefinitionStrategy, Set<Method>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy, suggesting that the strategy use the given ClassLoader.
getMockClass(ClassLoader, Class<I>, ClassDefinitionStrategy, Set<Method>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it using the supplied ClassDefinitionStrategy, suggesting that the strategy use the given ClassLoader.
getMockClass(ClassLoader, Class<I>, Set<Method>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the given ClassLoader.
getMockClass(ClassLoader, Class<I>, Set<Method>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock class of the given class and then define it in the given ClassLoader.
getMoxyClassMockEngine() - Static method in class com.roscopeco.moxy.Moxy
Get the current MoxyClassMockEngine in use by this class, or create and return a default engine if none has been set.
getMoxyEngine() - Static method in class com.roscopeco.moxy.Moxy
Get the current MoxyEngine in use by this class, or create and return a default engine if none has been set.
gt(MoxyEngine, T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Comparable T that is strictly greater-than the given value in the specified MoxyEngine.
gt(T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Comparable T that is strictly greater-than the given value in the current default Moxy engine.
gtBool(boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that is strictly greater-than the given value in the current default Moxy engine.
gtBool(MoxyEngine, boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that is strictly greater-than the given value in the specified MoxyEngine.
gtByte(byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that is strictly greater-than the given value in the current default Moxy engine.
gtByte(MoxyEngine, byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that is strictly greater-than the given value in the specified MoxyEngine.
gtChar(char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that is strictly greater-than the given value in the current default Moxy engine.
gtChar(MoxyEngine, char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that is strictly greater-than the given value in the specified MoxyEngine.
gtDouble(double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that is strictly greater-than the given value in the current default Moxy engine.
gtDouble(MoxyEngine, double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that is strictly greater-than the given value in the specified MoxyEngine.
gtFloat(float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that is strictly greater-than the given value in the current default Moxy engine.
gtFloat(MoxyEngine, float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that is strictly greater-than the given value in the specified MoxyEngine.
gtInt(int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that is strictly greater-than the given value in the current default Moxy engine.
gtInt(MoxyEngine, int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that is strictly greater-than the given value in the specified MoxyEngine.
gtLong(long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that is strictly greater-than the given value in the current default Moxy engine.
gtLong(MoxyEngine, long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that is strictly greater-than the given value in the specified MoxyEngine.
gtShort(short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that is strictly greater-than the given value in the current default Moxy engine.
gtShort(MoxyEngine, short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that is strictly greater-than the given value in the specified MoxyEngine.

I

IllegalMatcherStateException - Exception in com.roscopeco.moxy.matchers
Thrown to indicate that one or more matchers are in an incorrect state.
inAnyOrder() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verifies that the mock methods were called (with matching arguments) in any order.
InconsistentMatchersException - Exception in com.roscopeco.moxy.matchers
Thrown to indicate that the matcher stack was found to be in an inconsistent state.
InconsistentMatchersException(int, Deque<MoxyMatcher<?>>) - Constructor for exception com.roscopeco.moxy.matchers.InconsistentMatchersException
 
instanceOf(MoxyEngine, Class<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher for T arguments that matches if the argument is an instanceof the specified class.
instanceOf(Class<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher for T arguments that matches if the argument is an instanceof the specified class.
inThatOrder() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verifies that the mock methods were called (with matching arguments) in the order they were called within the lambda passed to assertMocks.
InvalidMockInvocationException - Exception in com.roscopeco.moxy.api
Thrown to indicate the framework was expecting to see a mock invocation (e.g.
InvalidMockInvocationException() - Constructor for exception com.roscopeco.moxy.api.InvalidMockInvocationException
 
InvalidMockInvocationException(String) - Constructor for exception com.roscopeco.moxy.api.InvalidMockInvocationException
 
InvalidStubbingException - Exception in com.roscopeco.moxy.api
Thrown to indicate an invocation has been incorrectly stubbed.
InvalidStubbingException(String) - Constructor for exception com.roscopeco.moxy.api.InvalidStubbingException
 
InvalidStubbingException(String, String) - Constructor for exception com.roscopeco.moxy.api.InvalidStubbingException
 
InvalidStubbingException(String, Throwable) - Constructor for exception com.roscopeco.moxy.api.InvalidStubbingException
 
InvocationRunnable - Interface in com.roscopeco.moxy.api
Functional interface used to run monitored void method invocations (e.g.
InvocationSupplier<T> - Interface in com.roscopeco.moxy.api
Functional interface used to run monitored method invocations (e.g.
isMock(MoxyEngine, Class<?>) - Static method in class com.roscopeco.moxy.Moxy
Determines whether the supplied class is a mock class in the context of the supplied MoxyEngine.
isMock(MoxyEngine, Object) - Static method in class com.roscopeco.moxy.Moxy
Determines whether the supplied class is a mock class in the context of the supplied MoxyEngine.
isMock(Class<?>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Determines whether the supplied class is a mock class.
isMock(Class<?>) - Static method in class com.roscopeco.moxy.Moxy
Determines whether the supplied class is a mock class.
isMock(Object) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Determines whether the supplied object is a mock instance.
isMock(Object) - Static method in class com.roscopeco.moxy.Moxy
Determines whether the supplied object is a mock instance.

L

LookupClassDefinitionStrategy - Class in com.roscopeco.moxy.api
A ClassDefinitionStrategy implementation that uses a supplied MethodHandles.Lookup.
LookupClassDefinitionStrategy(MethodHandles.Lookup) - Constructor for class com.roscopeco.moxy.api.LookupClassDefinitionStrategy
 
lt(MoxyEngine, T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Comparable T that is strictly less-than the given value in the specified MoxyEngine.
lt(T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any Comparable T that is strictly less-than the given value in the specified MoxyEngine.
ltBool(boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that is strictly less-than the given value in the current default Moxy engine.
ltBool(MoxyEngine, boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean that is strictly less-than the given value in the specified MoxyEngine.
ltByte(byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that is strictly less-than the given value in the current default Moxy engine.
ltByte(MoxyEngine, byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte that is strictly less-than the given value in the specified MoxyEngine.
ltChar(char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that is strictly less-than the given value in the current default Moxy engine.
ltChar(MoxyEngine, char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that is strictly less-than the given value in the specified MoxyEngine.
ltDouble(double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that is strictly less-than the given value in the current default Moxy engine.
ltDouble(MoxyEngine, double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double that is strictly less-than the given value in the specified MoxyEngine.
ltFloat(float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that is strictly less-than the given value in the current default Moxy engine.
ltFloat(MoxyEngine, float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float that is strictly less-than the given value in the specified MoxyEngine.
ltInt(int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that is strictly less-than the given value in the current default Moxy engine.
ltInt(MoxyEngine, int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int that is strictly less-than the given value in the specified MoxyEngine.
ltLong(long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that is strictly less-than the given value in the current default Moxy engine.
ltLong(MoxyEngine, long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long that is strictly less-than the given value in the specified MoxyEngine.
ltShort(short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char that is strictly less-than the given value in the current default Moxy engine.
ltShort(MoxyEngine, short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short that is strictly less-than the given value in the specified MoxyEngine.

M

Matchers - Class in com.roscopeco.moxy.matchers
Provides static access to the standard Moxy argument matchers.
MatcherUsageError - Exception in com.roscopeco.moxy.matchers
Thrown to indicate that Moxy has detected a definitely-incorrect use of matchers.
MatcherUsageError(String) - Constructor for exception com.roscopeco.moxy.matchers.MatcherUsageError
 
matches(MoxyEngine, Predicate<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match an argument of type T if the supplied predicate returns true for that argument.
matches(Predicate<T>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match an argument of type T if the supplied predicate returns true for that argument.
matches(T) - Method in interface com.roscopeco.moxy.api.MoxyMatcher
Called by the framework to determine whether the given argument should be considered a match for this matcher.
matchesBool(MoxyEngine, Predicate<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive boolean if the supplied predicate returns true for that boolean.
matchesBool(Predicate<Boolean>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive boolean if the supplied predicate returns true for that boolean.
matchesByte(MoxyEngine, Predicate<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive byte if the supplied function returns true for that byte.
matchesByte(Predicate<Byte>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive byte if the supplied function returns true for that byte.
matchesChar(MoxyEngine, Predicate<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive char if the supplied predicate returns true for that char.
matchesChar(Predicate<Character>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive char if the supplied predicate returns true for that char.
matchesDouble(MoxyEngine, DoublePredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive double if the supplied predicate returns true for that double.
matchesDouble(DoublePredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive double if the supplied predicate returns true for that double.
matchesFloat(MoxyEngine, Predicate<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive float if the supplied predicate returns true for that float.
matchesFloat(Predicate<Float>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive float if the supplied predicate returns true for that float.
matchesInt(MoxyEngine, IntPredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive int if the supplied predicate returns true for that int.
matchesInt(IntPredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive int if the supplied predicate returns true for that int.
matchesLong(MoxyEngine, LongPredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive long if the supplied predicate returns true for that long.
matchesLong(LongPredicate) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive long if the supplied predicate returns true for that long.
matchesShort(MoxyEngine, Predicate<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive short if the supplied predicate returns true for that short.
matchesShort(Predicate<Short>) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match a primitive short if the supplied predicate returns true for that short.
mock(MoxyEngine, Class<T>, PrintStream) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the specified MoxyEngine.
mock(Class<T>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock instance of the given class.
mock(Class<T>) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the currently-set (or default) MoxyEngine.
mock(Class<T>, ClassDefinitionStrategy) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock instance of the given class using the supplied ClassDefinitionStrategy.
mock(Class<T>, ClassDefinitionStrategy, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock instance of the given class using the supplied ClassDefinitionStrategy.
mock(Class<T>, PrintStream) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Create a mock instance of the given class.
mock(Class<T>, PrintStream) - Static method in class com.roscopeco.moxy.Moxy
Create a mock instance of the given class using the currently-set (or default) MoxyEngine.
mockClasses(MoxyClassMockEngine, Class<?>...) - Static method in class com.roscopeco.moxy.Moxy
Convert the given classes to mock classes using the supplied MoxyClassMockEngine.
mockClasses(Class<?>...) - Method in interface com.roscopeco.moxy.api.MoxyClassMockEngine
Convert the given classes to mock classes.
mockClasses(Class<?>...) - Static method in class com.roscopeco.moxy.Moxy
Convert the given classes to mock classes using the default MoxyClassMockEngine.
MockGenerationException - Exception in com.roscopeco.moxy.api
Thrown to indicate an unrecoverable error occured during mock generation.
MockGenerationException() - Constructor for exception com.roscopeco.moxy.api.MockGenerationException
 
MockGenerationException(String) - Constructor for exception com.roscopeco.moxy.api.MockGenerationException
 
MockGenerationException(String, Throwable) - Constructor for exception com.roscopeco.moxy.api.MockGenerationException
 
MonitoredInvocationException - Exception in com.roscopeco.moxy.api
Thrown to indicate an unexpected occurred during a monitored invocation.
MonitoredInvocationException(Throwable) - Constructor for exception com.roscopeco.moxy.api.MonitoredInvocationException
 
Moxy - Class in com.roscopeco.moxy
Top-level static-imports for convenient Moxy use.
MoxyClassMockEngine - Interface in com.roscopeco.moxy.api
An engine used to create Moxy class mocks.
MoxyEngine - Interface in com.roscopeco.moxy.api
A MoxyEngine is the class that is responsible for generating mocks according to whatever strategy it is designed to use.
MoxyException - Exception in com.roscopeco.moxy.api
Base-class for Moxy exceptions.
MoxyException() - Constructor for exception com.roscopeco.moxy.api.MoxyException
 
MoxyException(String) - Constructor for exception com.roscopeco.moxy.api.MoxyException
 
MoxyException(String, Throwable) - Constructor for exception com.roscopeco.moxy.api.MoxyException
 
MoxyException(Throwable) - Constructor for exception com.roscopeco.moxy.api.MoxyException
 
MoxyMatcher<T> - Interface in com.roscopeco.moxy.api
A matcher provides argument-matching for Moxy mocks.
MoxyMock - Annotation Type in com.roscopeco.moxy.api
All mocks created by a MoxyEngine implementation must have this annotation.
MoxyMultiVerifier - Interface in com.roscopeco.moxy.api
Implementations of this interface allow multiple mocks invocations to be verified after use.
MoxyStubber<T> - Interface in com.roscopeco.moxy.api
Implementations of this interface allow mocks to be stubbed to throw or return given values.
MoxyVerifier - Interface in com.roscopeco.moxy.api
Implementations of this interface allow mocks to be verified after use.
MoxyVoidStubber - Interface in com.roscopeco.moxy.api
Special case stubber for void methods.

N

neq(MoxyEngine, T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T except the given value in the specified MoxyEngine.
neq(T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T except the given value in the current default Moxy engine.
neqBool(boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean except the given value in the current default Moxy engine.
neqBool(MoxyEngine, boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean except the given value in the specified MoxyEngine.
neqByte(byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte except the given value in the current default Moxy engine.
neqByte(MoxyEngine, byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte except the given value in the specified MoxyEngine.
neqChar(char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char except the given value in the current default Moxy engine.
neqChar(MoxyEngine, char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char except the given value in the specified MoxyEngine.
neqDouble(double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double except the given value in the current default Moxy engine.
neqDouble(MoxyEngine, double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double except the given value in the specified MoxyEngine.
neqFloat(float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float except the given value in the current default Moxy engine.
neqFloat(MoxyEngine, float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float except the given value in the specified MoxyEngine.
neqInt(int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int except the given value in the current default Moxy engine.
neqInt(MoxyEngine, int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int except the given value in the specified MoxyEngine.
neqLong(long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long except the given value in the current default Moxy engine.
neqLong(MoxyEngine, long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long except the given value in the specified MoxyEngine.
neqShort(short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short except the given value in the current default Moxy engine.
neqShort(MoxyEngine, short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short except the given value in the specified MoxyEngine.
NO_METHODS - Static variable in interface com.roscopeco.moxy.api.MoxyEngine
Constant set to be passed to mock generation methods when no methods are to be mocked.
not(MoxyEngine, T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which the supplied matcher does not match.
not(T) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which the supplied matcher does not match.
notBool(boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which the supplied matcher does not match.
notBool(MoxyEngine, boolean) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which the supplied matcher does not match.
notByte(byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which the supplied matcher does not match.
notByte(MoxyEngine, byte) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which the supplied matcher does not match.
notChar(char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which the supplied matcher does not match.
notChar(MoxyEngine, char) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which the supplied matcher does not match.
notDouble(double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which the supplied matcher does not match.
notDouble(MoxyEngine, double) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which the supplied matcher does not match.
notFloat(float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which the supplied matcher does not match.
notFloat(MoxyEngine, float) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which the supplied matcher does not match.
notInt(int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which the supplied matcher does not match.
notInt(MoxyEngine, int) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which the supplied matcher does not match.
notLong(long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which the supplied matcher does not match.
notLong(MoxyEngine, long) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which the supplied matcher does not match.
notShort(short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which the supplied matcher does not match.
notShort(MoxyEngine, short) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which the supplied matcher does not match.

O

or(MoxyEngine, T...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which any of the supplied matchers also match that byte.
or(T...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any T for which any of the supplied matchers also match that byte.
orBool(MoxyEngine, Boolean...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which any of the supplied matchers also match that boolean.
orBool(Boolean...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive boolean for which any of the supplied matchers also match that boolean.
orByte(MoxyEngine, Byte...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which any of the supplied matchers also match that byte.
orByte(Byte...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive byte for which any of the supplied matchers also match that byte.
orChar(MoxyEngine, Character...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which any of the supplied matchers also match that char.
orChar(Character...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive char for which any of the supplied matchers also match that char.
orDouble(MoxyEngine, Double...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which any of the supplied matchers also match that double.
orDouble(Double...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive double for which any of the supplied matchers also match that double.
orFloat(MoxyEngine, Float...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which any of the supplied matchers also match that float.
orFloat(Float...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive float for which any of the supplied matchers also match that float.
orInt(MoxyEngine, Integer...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which any of the supplied matchers also match that int.
orInt(Integer...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive int for which any of the supplied matchers also match that int.
orLong(MoxyEngine, Long...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which any of the supplied matchers also match that long.
orLong(Long...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive long for which any of the supplied matchers also match that long.
orShort(MoxyEngine, Short...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which any of the supplied matchers also match that short.
orShort(Short...) - Static method in class com.roscopeco.moxy.matchers.Matchers
Create a matcher that will match any primitive short for which any of the supplied matchers also match that short.

P

PossibleMatcherUsageError - Exception in com.roscopeco.moxy.matchers
Thrown to indicate that Moxy has detected potentially-incorrect usage of matchers.
PossibleMatcherUsageError(String, Throwable) - Constructor for exception com.roscopeco.moxy.matchers.PossibleMatcherUsageError
 

R

regexMatch(MoxyEngine, String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument matches the specified regular expression.
regexMatch(String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument matches the specified regular expression.
registerDefaultReturnForType(String, DefaultReturnGenerator) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Register a default return value generator for the specified type.
registerMatcher(MoxyMatcher<?>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Register the given matcher with this MoxyEngine.
removeDefaultReturnForType(String) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Remove a configured default return value generator for the specified type.
reset() - Method in interface com.roscopeco.moxy.api.MoxyEngine
Reset this engine.
resetAllClasses() - Method in interface com.roscopeco.moxy.api.MoxyClassMockEngine
Reset the given classes to their original, non-mock implementation.
resetAllClassMocks() - Static method in class com.roscopeco.moxy.Moxy
Reset all class mocks created with the default MoxyClassMockEngine to their original, un-mocked state.
resetAllClassMocks(MoxyClassMockEngine) - Static method in class com.roscopeco.moxy.Moxy
Reset all class mocks created with the supplied MoxyClassMockEngine to their original, un-mocked state.
resetClasses(Class<?>...) - Method in interface com.roscopeco.moxy.api.MoxyClassMockEngine
Reset the given classes to their original, non-mock implementation.
resetClassMocks(MoxyClassMockEngine, Class<?>...) - Static method in class com.roscopeco.moxy.Moxy
Reset the given classes to their original, non-mock implementation, using the supplied MoxyClassMockEngine.
resetClassMocks(Class<?>...) - Static method in class com.roscopeco.moxy.Moxy
Reset the given classes to their original, non-mock implementation, using the default MoxyClassMockEngine.
resetDefaultReturnTypes() - Method in interface com.roscopeco.moxy.api.MoxyEngine
Reset default return type generators to the defaults.
resetMock(MoxyEngine, Object) - Static method in class com.roscopeco.moxy.Moxy
Reset the supplied mock using the supplied engine, removing all stubbing that was previously applied.
resetMock(Object) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Reset the supplied mock, removing all stubbing that was previously applied.
resetMock(Object) - Static method in class com.roscopeco.moxy.Moxy
Reset the supplied mock, removing all stubbing that was previously applied.
run() - Method in interface com.roscopeco.moxy.api.InvocationRunnable
Run the invocation.

S

setMoxyClassMockEngine(MoxyClassMockEngine) - Static method in class com.roscopeco.moxy.Moxy
Set the MoxyClassMockEngine that will be used by all future calls to methods in this class.
setMoxyEngine(MoxyEngine) - Static method in class com.roscopeco.moxy.Moxy
Set the MoxyEngine that will be used by all future calls to methods in this class.
spy(MoxyEngine, Class<T>, PrintStream) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the specified MoxyEngine.
spy(Class<T>) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the default MoxyEngine.
spy(Class<T>, PrintStream) - Static method in class com.roscopeco.moxy.Moxy
Create a spy instance of the given class using the default MoxyEngine.
spy(T) - Static method in class com.roscopeco.moxy.Moxy
Convert the given object into a spy.
startsWith(MoxyEngine, String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument starts with the specified String.
startsWith(String) - Static method in class com.roscopeco.moxy.matchers.Matchers
Creates a matcher for String arguments that matches if the argument starts with the specified String.

T

thenAnswer(Function<List<?>, T>) - Method in interface com.roscopeco.moxy.api.MoxyStubber
Stub this method to return the value calculated by the supplied Function.
thenCallRealMethod() - Method in interface com.roscopeco.moxy.api.MoxyStubber
Instead of stubbing, have the mock call the real method instead.
thenCallRealMethod() - Method in interface com.roscopeco.moxy.api.MoxyVoidStubber
Instead of stubbing, have the mock call the real method instead.
thenDelegateTo(Object) - Method in interface com.roscopeco.moxy.api.MoxyStubber
Have this method delegate calls to the first compatible method on the given object.
thenDelegateTo(Object) - Method in interface com.roscopeco.moxy.api.MoxyVoidStubber
Have this method delegate calls to the first compatible method on the given object.
thenDo(Consumer<List<?>>) - Method in interface com.roscopeco.moxy.api.MoxyStubber
Add a doAction to this method.
thenDo(Consumer<List<?>>) - Method in interface com.roscopeco.moxy.api.MoxyVoidStubber
Add a doAction to this method.
thenReturn(T) - Method in interface com.roscopeco.moxy.api.MoxyStubber
Stubs the mock invocation to return the given Object.
thenThrow(Throwable) - Method in interface com.roscopeco.moxy.api.MoxyStubber
Stubs the mock invocation to throw the given Throwable.
thenThrow(Throwable) - Method in interface com.roscopeco.moxy.api.MoxyVoidStubber
Stubs the mock invocation to throw the given Throwable.

W

wasCalled() - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify that the mock method was called at least once, with the arguments specified in the call.
wasCalled(int) - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify that the mock method was called exactly times, with the arguments specified in the call.
wasCalledAtLeast(int) - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mock method was called at least times.
wasCalledAtMost(int) - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mock method was called at most times.
wasCalledOnce() - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mock method was called exactly once.
wasCalledTwice() - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify the mock method called exactly twice.
wasNotCalled() - Method in interface com.roscopeco.moxy.api.MoxyVerifier
Verify that the mock method was not called.
wereAllCalled() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called at least once, with the arguments specified in the call.
wereAllCalledAtLeast(int) - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called at least expectedTimes with the arguments specified in the call.
wereAllCalledAtLeastTwice() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called at least twice with the arguments specified in the call.
wereAllCalledAtMost(int) - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called at most expectedTimes with the arguments specified in the call.
wereAllCalledAtMostTwice() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called at most twice with the arguments specified in the call.
wereAllCalledExactly(int) - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called exactly expectedTimes with the arguments specified in the call.
wereAllCalledOnce() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called exactly once with the arguments specified in the call.
wereAllCalledTwice() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that all the mock methods were called exactly twice with the arguments specified in the call.
wereNotCalled() - Method in interface com.roscopeco.moxy.api.MoxyMultiVerifier
Verify that none of the mock methods were called at all.
when(InvocationRunnable) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Starts stubbing of the mock invocation in the supplied lambda expression.
when(InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts stubbing of the mock invocation in the supplied lambda expression using the currently-set (or default) MoxyEngine.
when(InvocationSupplier<T>) - Method in interface com.roscopeco.moxy.api.MoxyEngine
Starts stubbing of the mock invocation in the supplied lambda expression.
when(InvocationSupplier<T>) - Static method in class com.roscopeco.moxy.Moxy
Starts stubbing of the mock invocation in the supplied lambda expression using the currently-set (or default) MoxyEngine.
when(MoxyEngine, InvocationRunnable) - Static method in class com.roscopeco.moxy.Moxy
Starts stubbing of the mock invocation in the supplied lambda expression using the specified MoxyEngine.
when(MoxyEngine, InvocationSupplier<T>) - Static method in class com.roscopeco.moxy.Moxy
Starts stubbing of the mock invocation in the supplied lambda expression using the specified MoxyEngine.
A C D E G I L M N O P R S T W 
All Classes All Packages