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

A

a(Class<T>) - Method in class org.jmock.Expectations
 
Action - Interface in org.jmock.api
An object that fakes the behaviour of an InvocationExpectation.
ActionClause - Interface in org.jmock.syntax
 
ActionSequence - Class in org.jmock.lib.action
Returns the next of a sequence of elements each time it is invoked.
ActionSequence(Action...) - Constructor for class org.jmock.lib.action.ActionSequence
 
addExpectation(Expectation) - Method in class org.jmock.Mockery
Adds an expected invocation that the object under test will perform upon objects in its context during the test.
addVerifier(Runnable) - Method in class org.jmock.integration.junit3.VerifyingTestCase
 
AllOf<T> - Class in org.hamcrest.core
Calculates the logical conjunction of two matchers.
AllOf(Iterable<Matcher<T>>) - Constructor for class org.hamcrest.core.AllOf
 
allOf(Matcher<T>...) - Static method in class org.hamcrest.core.AllOf
 
allOf(Iterable<Matcher<T>>) - Static method in class org.hamcrest.core.AllOf
 
allOf(Matcher<T>...) - Static method in class org.hamcrest.Matchers
 
allOf(Iterable<Matcher<T>>) - Static method in class org.hamcrest.Matchers
 
allowing(Matcher<Object>) - Method in class org.jmock.Expectations
 
allowing(T) - Method in class org.jmock.Expectations
 
allowing(T) - Method in interface org.jmock.syntax.CardinalityClause
 
allowing(Matcher<Object>) - Method in interface org.jmock.syntax.CardinalityClause
 
allowsMoreInvocations() - Method in interface org.jmock.api.Expectation
Can more Invocations expected by this Expectation still occur?
an(Class<T>) - Method in class org.jmock.Expectations
 
aNonNull(Class<T>) - Method in class org.jmock.Expectations
 
aNull(Class<T>) - Method in class org.jmock.Expectations
 
any(Class<T>) - Method in class org.jmock.Expectations
 
AnyOf<T> - Class in org.hamcrest.core
Calculates the logical disjunction of two matchers.
AnyOf(Iterable<Matcher<T>>) - Constructor for class org.hamcrest.core.AnyOf
 
anyOf(Matcher<T>...) - Static method in class org.hamcrest.core.AnyOf
 
anyOf(Iterable<Matcher<T>>) - Static method in class org.hamcrest.core.AnyOf
 
anyOf(Matcher<T>...) - Static method in class org.hamcrest.Matchers
 
anyOf(Iterable<Matcher<T>>) - Static method in class org.hamcrest.Matchers
 
anything() - Static method in class org.hamcrest.core.IsAnything
 
anything(String) - Static method in class org.hamcrest.core.IsAnything
 
anything() - Static method in class org.hamcrest.Matchers
 
anything(String) - Static method in class org.hamcrest.Matchers
 
anything() - Method in class org.jmock.Expectations
 
appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in interface org.hamcrest.Description
Appends a list of SelfDescribing objects to the description.
appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in class org.hamcrest.StringDescription
 
appendText(String) - Method in interface org.hamcrest.Description
Appends some plain text to the description.
appendText(String) - Method in class org.hamcrest.StringDescription
 
appendValue(Object) - Method in interface org.hamcrest.Description
Appends an arbitary value to the description.
appendValue(Object) - Method in class org.hamcrest.StringDescription
 
appendValueList(String, String, String, T...) - Method in interface org.hamcrest.Description
Appends a list of values to the description.
appendValueList(String, String, String, Iterable<T>) - Method in interface org.hamcrest.Description
Appends a list of values to the description.
appendValueList(String, String, String, T...) - Method in class org.hamcrest.StringDescription
 
appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.StringDescription
 
applyTo(Object) - Method in class org.jmock.api.Invocation
 
ArgumentConstraintPhrases - Interface in org.jmock.syntax
 
array(Matcher<T>...) - Static method in class org.hamcrest.collection.IsArray
 
AssertionErrorTranslator - Class in org.jmock.lib
Translates ExpectationErrors into AssertionErrors that several test frameworks, including JUnit 4 and TestNG, use to report errors.
assertIsSatisfied() - Method in class org.jmock.Mockery
Fails the test if there are any expectations that have not been met.
atLeast(int) - Method in class org.jmock.Expectations
 
atLeast(int) - Method in interface org.jmock.syntax.CardinalityClause
 
atMost(int) - Method in class org.jmock.Expectations
 
atMost(int) - Method in interface org.jmock.syntax.CardinalityClause
 

B

BaseMatcher<T> - Class in org.hamcrest
BaseClass for all Matcher implementations.
BaseMatcher() - Constructor for class org.hamcrest.BaseMatcher
 
between(int, int) - Method in class org.jmock.Expectations
 
between(int, int) - Method in interface org.jmock.syntax.CardinalityClause
 
buildExpectations(Action, ExpectationCollector) - Method in class org.jmock.Expectations
 

C

CamelCaseNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the mocked type's name with the first character in lower case.
CamelCaseNamingScheme() - Constructor for class org.jmock.lib.CamelCaseNamingScheme
 
canImposterise(Class<?>) - Method in interface org.jmock.api.Imposteriser
Reports if the Imposteriser is able to imposterise a given type.
canImposterise(Class<?>) - Method in class org.jmock.lib.JavaReflectionImposteriser
 
canImposterise(Class<?>) - Method in class org.jmock.lib.nonstd.UnsafeHackConcreteClassImposteriser
 
CardinalityClause - Interface in org.jmock.syntax
 
checking(ExpectationBuilder) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Specify expectations upon the mock objects in the test.
checking(ExpectationBuilder) - Method in class org.jmock.Mockery
Specifies the expected invocations that the object under test will perform upon objects in its context during the test.
checkReturnTypeCompatibility(Object) - Method in class org.jmock.api.Invocation
 
closeTo(double, double) - Static method in class org.hamcrest.Matchers
 
closeTo(double, double) - Static method in class org.hamcrest.number.IsCloseTo
 
constrainAsNextInSequence(InvocationExpectation) - Method in interface org.jmock.Sequence
 
containsString(String) - Static method in class org.hamcrest.Matchers
 
containsString(String) - Static method in class org.hamcrest.text.StringContains
 
createMethodRunner(Object, Method, RunNotifier) - Method in class org.jmock.integration.junit4.JMockTestClassMethodsRunner
 
currentBuilder() - Method in class org.jmock.Expectations
 
CustomAction - Class in org.jmock.lib.action
A partial implementation of the Action interface that makes it convenient to implement application-specific actions with inline anonymous classes.
CustomAction(String) - Constructor for class org.jmock.lib.action.CustomAction
 

D

defaultNameFor(Class<?>) - Method in interface org.jmock.api.MockObjectNamingScheme
Derive a name for a mock object from the name of the given type.
defaultNameFor(Class<?>) - Method in class org.jmock.lib.CamelCaseNamingScheme
 
defaultNameFor(Class<?>) - Method in class org.jmock.lib.LastWordNamingScheme
 
defaultNameFor(Class<?>) - Method in class org.jmock.lib.RetroNamingScheme
 
DescribedAs<T> - Class in org.hamcrest.core
Provides a custom description to another matcher.
DescribedAs(String, Matcher<T>, Object[]) - Constructor for class org.hamcrest.core.DescribedAs
 
describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.core.DescribedAs
 
describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.Matchers
 
describeTo(Description) - Method in class org.hamcrest.beans.HasProperty
 
describeTo(Description) - Method in class org.hamcrest.beans.HasPropertyWithValue
 
describeTo(Description) - Method in class org.hamcrest.collection.IsArray
 
describeTo(Description) - Method in class org.hamcrest.collection.IsArrayContaining
 
describeTo(Description) - Method in class org.hamcrest.collection.IsCollectionContaining
 
describeTo(Description) - Method in class org.hamcrest.collection.IsMapContaining
 
describeTo(Description) - Method in class org.hamcrest.core.AllOf
 
describeTo(Description) - Method in class org.hamcrest.core.AnyOf
 
describeTo(Description) - Method in class org.hamcrest.core.DescribedAs
 
describeTo(Description) - Method in class org.hamcrest.core.Is
 
describeTo(Description) - Method in class org.hamcrest.core.IsAnything
 
describeTo(Description) - Method in class org.hamcrest.core.IsEqual
 
describeTo(Description) - Method in class org.hamcrest.core.IsInstanceOf
 
describeTo(Description) - Method in class org.hamcrest.core.IsNot
 
describeTo(Description) - Method in class org.hamcrest.core.IsNull
 
describeTo(Description) - Method in class org.hamcrest.core.IsSame
 
describeTo(Description) - Method in class org.hamcrest.number.IsCloseTo
 
describeTo(Description) - Method in class org.hamcrest.number.IsGreaterThan
 
describeTo(Description) - Method in class org.hamcrest.object.HasToString
 
describeTo(Description) - Method in class org.hamcrest.object.IsCompatibleType
 
describeTo(Description) - Method in class org.hamcrest.object.IsEventFrom
 
describeTo(Description) - Method in interface org.hamcrest.SelfDescribing
Generates a description of the object.
describeTo(Description) - Method in class org.hamcrest.text.IsEqualIgnoringCase
 
describeTo(Description) - Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
 
describeTo(Description) - Method in class org.hamcrest.text.SubstringMatcher
 
describeTo(Description) - Method in class org.hamcrest.xml.HasXPath
 
describeTo(Description) - Method in error org.jmock.api.ExpectationError
 
describeTo(Description) - Method in class org.jmock.api.Invocation
 
describeTo(Description) - Method in class org.jmock.lib.action.ActionSequence
 
describeTo(Description) - Method in class org.jmock.lib.action.CustomAction
 
describeTo(Description) - Method in class org.jmock.lib.action.DoAllAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ReturnIteratorAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ReturnValueAction
 
describeTo(Description) - Method in class org.jmock.lib.action.ThrowAction
 
describeTo(Description) - Method in class org.jmock.lib.action.VoidAction
 
Description - Interface in org.hamcrest
A description of a Matcher.
descriptionEnd() - Method in class org.hamcrest.collection.IsArray
Returns the string that ends the description.
descriptionSeparator() - Method in class org.hamcrest.collection.IsArray
Returns the string that separates the elements in the description.
descriptionStart() - Method in class org.hamcrest.collection.IsArray
Returns the string that starts the description.
doAll(Action...) - Method in class org.jmock.Expectations
 
DoAllAction - Class in org.jmock.lib.action
Performs multiple actions every time it is invoked.
DoAllAction(Action...) - Constructor for class org.jmock.lib.action.DoAllAction
 

E

endsWith(String) - Static method in class org.hamcrest.Matchers
 
endsWith(String) - Static method in class org.hamcrest.text.StringEndsWith
 
equal(T) - Method in class org.jmock.Expectations
 
equals(Object) - Method in class org.jmock.api.Invocation
 
equals(Invocation) - Method in class org.jmock.api.Invocation
 
equalTo(T) - Static method in class org.hamcrest.core.IsEqual
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
equalTo(T) - Static method in class org.hamcrest.Matchers
 
equalToIgnoringCase(String) - Static method in class org.hamcrest.Matchers
 
equalToIgnoringCase(String) - Static method in class org.hamcrest.text.IsEqualIgnoringCase
 
equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.Matchers
 
equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
 
evalSubstringOf(String) - Method in class org.hamcrest.text.StringContains
 
evalSubstringOf(String) - Method in class org.hamcrest.text.StringEndsWith
 
evalSubstringOf(String) - Method in class org.hamcrest.text.StringStartsWith
 
evalSubstringOf(String) - Method in class org.hamcrest.text.SubstringMatcher
 
eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.Matchers
 
eventFrom(Object) - Static method in class org.hamcrest.Matchers
 
eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.object.IsEventFrom
Constructs an IsEventFrom Matcher that returns true for any object derived from eventClass announced by source.
eventFrom(Object) - Static method in class org.hamcrest.object.IsEventFrom
Constructs an IsEventFrom Matcher that returns true for any object derived from EventObject announced by source .
exactly(int) - Method in class org.jmock.Expectations
 
exactly(int) - Method in interface org.jmock.syntax.CardinalityClause
 
executeMethodBody() - Method in class org.jmock.integration.junit4.JMockTestMethodRunner
 
Expectation - Interface in org.jmock.api
An object that matches, checks and fakes an Invocation
ExpectationError - Error in org.jmock.api
An error thrown when an expectation is violated during a test.
ExpectationError(String, SelfDescribing, Invocation) - Constructor for error org.jmock.api.ExpectationError
 
ExpectationError(String, SelfDescribing) - Constructor for error org.jmock.api.ExpectationError
 
ExpectationErrorTranslator - Interface in org.jmock.api
Translates expectation errors into error type used by a specific testing framework.
expectations - Variable in error org.jmock.api.ExpectationError
 
Expectations - Class in org.jmock
Provides most of the syntax of jMock's "domain-specific language" API.
Expectations() - Constructor for class org.jmock.Expectations
 

F

Factory - Annotation Type in org.hamcrest
Marks a Hamcrest static factory method so tools recognise them.
findMockeryField(Class) - Method in class org.jmock.integration.junit4.JMockTestClassMethodsRunner
 

G

getInvokedMethod() - Method in class org.jmock.api.Invocation
 
getInvokedObject() - Method in class org.jmock.api.Invocation
 
getParameter(int) - Method in class org.jmock.api.Invocation
 
getParameterCount() - Method in class org.jmock.api.Invocation
 
getParametersAsArray() - Method in class org.jmock.api.Invocation
 
getPropertyDescriptor(String, Object) - Static method in class org.hamcrest.beans.PropertyUtil
Returns the description of the property with the provided name on the provided object's interface.
greaterThan(T) - Static method in class org.hamcrest.Matchers
 
greaterThan(T) - Static method in class org.hamcrest.number.OrderingComparisons
 
greaterThanOrEqualTo(T) - Static method in class org.hamcrest.Matchers
 
greaterThanOrEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparisons
 

H

hasEntry(Matcher<K>, Matcher<V>) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasEntry(K, V) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasEntry(Matcher<K>, Matcher<V>) - Static method in class org.hamcrest.Matchers
 
hasEntry(K, V) - Static method in class org.hamcrest.Matchers
 
hashCode() - Method in class org.jmock.api.Invocation
 
hasItem(Matcher<T>) - Static method in class org.hamcrest.collection.IsCollectionContaining
 
hasItem(T) - Static method in class org.hamcrest.collection.IsCollectionContaining
 
hasItem(T) - Static method in class org.hamcrest.Matchers
 
hasItem(Matcher<T>) - Static method in class org.hamcrest.Matchers
 
hasItemInArray(Matcher<T>) - Static method in class org.hamcrest.collection.IsArrayContaining
 
hasItemInArray(T) - Static method in class org.hamcrest.collection.IsArrayContaining
 
hasItemInArray(Matcher<T>) - Static method in class org.hamcrest.Matchers
 
hasItemInArray(T) - Static method in class org.hamcrest.Matchers
 
hasItems(Matcher<T>...) - Static method in class org.hamcrest.collection.IsCollectionContaining
 
hasItems(T...) - Static method in class org.hamcrest.collection.IsCollectionContaining
 
hasItems(Matcher<T>...) - Static method in class org.hamcrest.Matchers
 
hasItems(T...) - Static method in class org.hamcrest.Matchers
 
hasKey(Matcher<K>) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasKey(K) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasKey(Matcher<K>) - Static method in class org.hamcrest.Matchers
 
hasKey(K) - Static method in class org.hamcrest.Matchers
 
HasProperty<T> - Class in org.hamcrest.beans
Matcher that checks that an object has a JavaBean property with the specified name.
HasProperty(String) - Constructor for class org.hamcrest.beans.HasProperty
 
hasProperty(String) - Static method in class org.hamcrest.beans.HasProperty
 
hasProperty(String, Matcher) - Static method in class org.hamcrest.beans.HasPropertyWithValue
 
hasProperty(String) - Static method in class org.hamcrest.Matchers
 
hasProperty(String, Matcher) - Static method in class org.hamcrest.Matchers
 
HasPropertyWithValue<T> - Class in org.hamcrest.beans
Matcher that asserts that a JavaBean property on an argument passed to the mock object meets the provided matcher.
HasPropertyWithValue(String, Matcher) - Constructor for class org.hamcrest.beans.HasPropertyWithValue
 
hasToString(Matcher<String>) - Static method in class org.hamcrest.Matchers
 
HasToString<T> - Class in org.hamcrest.object
 
HasToString(Matcher<String>) - Constructor for class org.hamcrest.object.HasToString
 
hasToString(Matcher<String>) - Static method in class org.hamcrest.object.HasToString
 
hasValue(Matcher<V>) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasValue(V) - Static method in class org.hamcrest.collection.IsMapContaining
 
hasValue(Matcher<V>) - Static method in class org.hamcrest.Matchers
 
hasValue(V) - Static method in class org.hamcrest.Matchers
 
hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.Matchers
 
hasXPath(String) - Static method in class org.hamcrest.Matchers
 
HasXPath - Class in org.hamcrest.xml
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
HasXPath(String, Matcher<String>) - Constructor for class org.hamcrest.xml.HasXPath
 
hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.xml.HasXPath
 
hasXPath(String) - Static method in class org.hamcrest.xml.HasXPath
 

I

IdentityExpectationErrorTranslator - Class in org.jmock.lib
An ExpectationErrorTranslator that doesn't do any translation.
ignoring(T) - Method in class org.jmock.Expectations
 
ignoring(Matcher<Object>) - Method in class org.jmock.Expectations
 
ignoring(T) - Method in interface org.jmock.syntax.CardinalityClause
 
ignoring(Matcher<Object>) - Method in interface org.jmock.syntax.CardinalityClause
 
imposterise(Invokable, Class<T>, Class<?>...) - Method in interface org.jmock.api.Imposteriser
Creates an imposter for a given type that forwards Invocations to an Invokable object.
imposterise(Invokable, Class<T>, Class<?>...) - Method in class org.jmock.lib.JavaReflectionImposteriser
 
imposterise(Invokable, Class<T>, Class<?>...) - Method in class org.jmock.lib.nonstd.UnsafeHackConcreteClassImposteriser
 
Imposteriser - Interface in org.jmock.api
An object that can creates a proxy of the given type to capture Invocations and pass them to an Invokable object for mocking or stubbing.
inSequence(Sequence) - Method in class org.jmock.Expectations
 
INSTANCE - Static variable in class org.jmock.integration.junit3.JUnit3ErrorTranslator
 
INSTANCE - Static variable in class org.jmock.lib.action.VoidAction
 
INSTANCE - Static variable in class org.jmock.lib.AssertionErrorTranslator
 
INSTANCE - Static variable in class org.jmock.lib.CamelCaseNamingScheme
 
INSTANCE - Static variable in class org.jmock.lib.IdentityExpectationErrorTranslator
 
INSTANCE - Static variable in class org.jmock.lib.LastWordNamingScheme
 
INSTANCE - Static variable in class org.jmock.lib.nonstd.UnsafeHackConcreteClassImposteriser
 
INSTANCE - Static variable in class org.jmock.lib.RetroNamingScheme
 
instanceOf(Class<T>) - Static method in class org.hamcrest.core.IsInstanceOf
 
instanceOf(Class<T>) - Static method in class org.hamcrest.Matchers
 
invocation - Variable in error org.jmock.api.ExpectationError
 
Invocation - Class in org.jmock.api
The static details about a method and the run-time details of its invocation.
Invocation(Object, Method, Object...) - Constructor for class org.jmock.api.Invocation
 
Invokable - Interface in org.jmock.api
An object that can receive an Invocation.
invoke(Invocation) - Method in interface org.jmock.api.Expectation
Invokes the expectation: records that the invocation has occurred and fakes some behaviour in response.
invoke(Invocation) - Method in interface org.jmock.api.Invokable
Performs an action in response to an invocation.
invoke(Invocation) - Method in class org.jmock.lib.action.ActionSequence
 
invoke(Invocation) - Method in class org.jmock.lib.action.DoAllAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ReturnIteratorAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ReturnValueAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.ThrowAction
 
invoke(Invocation) - Method in class org.jmock.lib.action.VoidAction
 
Is<T> - Class in org.hamcrest.core
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
Is(Matcher<T>) - Constructor for class org.hamcrest.core.Is
 
is(Matcher<T>) - Static method in class org.hamcrest.core.Is
Decorates another Matcher, retaining the behavior but allowing tests to be slightly more expressive.
is(T) - Static method in class org.hamcrest.core.Is
This is a shortcut to the frequently used is(equalTo(x)).
is(Class<T>) - Static method in class org.hamcrest.core.Is
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
is(Matcher<T>) - Static method in class org.hamcrest.Matchers
 
is(T) - Static method in class org.hamcrest.Matchers
 
is(Class<T>) - Static method in class org.hamcrest.Matchers
 
is(String) - Method in interface org.jmock.syntax.StatesClause
 
IsAnything<T> - Class in org.hamcrest.core
A matcher that always returns true.
IsAnything() - Constructor for class org.hamcrest.core.IsAnything
 
IsAnything(String) - Constructor for class org.hamcrest.core.IsAnything
 
IsArray<T> - Class in org.hamcrest.collection
 
IsArray(Matcher<T>[]) - Constructor for class org.hamcrest.collection.IsArray
 
IsArrayContaining<T> - Class in org.hamcrest.collection
 
IsArrayContaining(Matcher<T>) - Constructor for class org.hamcrest.collection.IsArrayContaining
 
IsCloseTo - Class in org.hamcrest.number
Is the value a number equal to a value within some range of acceptable error?
IsCloseTo(double, double) - Constructor for class org.hamcrest.number.IsCloseTo
 
IsCollectionContaining<T> - Class in org.hamcrest.collection
 
IsCollectionContaining(Matcher<T>) - Constructor for class org.hamcrest.collection.IsCollectionContaining
 
IsCompatibleType<T> - Class in org.hamcrest.object
 
IsCompatibleType(Class<T>) - Constructor for class org.hamcrest.object.IsCompatibleType
 
IsEqual<T> - Class in org.hamcrest.core
Is the value equal to another value, as tested by the Object.equals(java.lang.Object) invokedMethod?
IsEqual(T) - Constructor for class org.hamcrest.core.IsEqual
 
IsEqualIgnoringCase - Class in org.hamcrest.text
Tests if a string is equal to another string, regardless of the case.
IsEqualIgnoringCase(String) - Constructor for class org.hamcrest.text.IsEqualIgnoringCase
 
IsEqualIgnoringWhiteSpace - Class in org.hamcrest.text
Tests if a string is equal to another string, ignoring any changes in whitespace.
IsEqualIgnoringWhiteSpace(String) - Constructor for class org.hamcrest.text.IsEqualIgnoringWhiteSpace
 
IsEventFrom - Class in org.hamcrest.object
Tests if the value is an event announced by a specific object.
IsEventFrom(Class, Object) - Constructor for class org.hamcrest.object.IsEventFrom
 
IsGreaterThan<T extends Comparable<T>> - Class in org.hamcrest.number
Is the value less than or greater than another Comparable value?
IsGreaterThan(Comparable<T>) - Constructor for class org.hamcrest.number.IsGreaterThan
 
IsInstanceOf<T> - Class in org.hamcrest.core
Tests whether the value is an instance of a class.
IsInstanceOf(Class<T>) - Constructor for class org.hamcrest.core.IsInstanceOf
Creates a new instance of IsInstanceOf
IsMapContaining<K,V> - Class in org.hamcrest.collection
 
IsMapContaining(Matcher<K>, Matcher<V>) - Constructor for class org.hamcrest.collection.IsMapContaining
 
IsNot<T> - Class in org.hamcrest.core
Calculates the logical negation of a matcher.
IsNot(Matcher<T>) - Constructor for class org.hamcrest.core.IsNot
 
isNot(String) - Method in interface org.jmock.syntax.StatesClause
 
IsNull<T> - Class in org.hamcrest.core
Is the value null?
IsNull() - Constructor for class org.hamcrest.core.IsNull
 
IsSame<T> - Class in org.hamcrest.core
Is the value the same object as another value?
IsSame(T) - Constructor for class org.hamcrest.core.IsSame
 
isSatisfied() - Method in interface org.jmock.api.Expectation
Have enough Invocations expected by this Expectation occurred?

J

JavaReflectionImposteriser - Class in org.jmock.lib
An Imposteriser that uses the Proxy class of the Java Reflection API.
JavaReflectionImposteriser() - Constructor for class org.jmock.lib.JavaReflectionImposteriser
 
JMock - Class in org.jmock.integration.junit4
 
JMock(Class<?>) - Constructor for class org.jmock.integration.junit4.JMock
 
JMockTestClassMethodsRunner - Class in org.jmock.integration.junit4
A JUnit 4 Runner that automatically verifies jMock expectations after the test has run.
JMockTestClassMethodsRunner(Class<?>) - Constructor for class org.jmock.integration.junit4.JMockTestClassMethodsRunner
 
JMockTestMethodRunner - Class in org.jmock.integration.junit4
 
JMockTestMethodRunner(Object, Method, RunNotifier, Description, Mockery) - Constructor for class org.jmock.integration.junit4.JMockTestMethodRunner
 
JUnit3ErrorTranslator - Class in org.jmock.integration.junit3
Translates ExpectationErrors into JUnit's AssertionFailedErrors.
JUnit3Mockery - Class in org.jmock.integration.junit3
 
JUnit3Mockery() - Constructor for class org.jmock.integration.junit3.JUnit3Mockery
 
JUnit4Mockery - Class in org.jmock.integration.junit4
 
JUnit4Mockery() - Constructor for class org.jmock.integration.junit4.JUnit4Mockery
 

L

LastWordNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the last word of the mocked type's name in lower case.
lessThan(T) - Static method in class org.hamcrest.Matchers
 
lessThan(T) - Static method in class org.hamcrest.number.OrderingComparisons
 
lessThanOrEqualTo(T) - Static method in class org.hamcrest.Matchers
 
lessThanOrEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparisons
 

M

Matcher<T> - Interface in org.hamcrest
A matcher over acceptable values.
Matchers - Class in org.hamcrest
 
Matchers() - Constructor for class org.hamcrest.Matchers
 
matches(Object) - Method in class org.hamcrest.core.AllOf
 
matches(Object) - Method in class org.hamcrest.core.AnyOf
 
matches(Object) - Method in class org.hamcrest.core.DescribedAs
 
matches(Object) - Method in class org.hamcrest.core.Is
 
matches(Object) - Method in class org.hamcrest.core.IsAnything
 
matches(Object) - Method in class org.hamcrest.core.IsEqual
 
matches(Object) - Method in class org.hamcrest.core.IsInstanceOf
 
matches(Object) - Method in class org.hamcrest.core.IsNot
 
matches(Object) - Method in class org.hamcrest.core.IsNull
 
matches(Object) - Method in class org.hamcrest.core.IsSame
 
matches(Object) - Method in interface org.hamcrest.Matcher
Evaluates the matcher for argument item.
matches(Object) - Method in class org.hamcrest.object.HasToString
 
matches(Object) - Method in class org.hamcrest.TypeSafeMatcher
Method made final to prevent accidental override.
matches(Invocation) - Method in interface org.jmock.api.Expectation
Can the Expectation be invoked with invocation?
matchesSafely(T) - Method in class org.hamcrest.beans.HasProperty
 
matchesSafely(T) - Method in class org.hamcrest.beans.HasPropertyWithValue
 
matchesSafely(T[]) - Method in class org.hamcrest.collection.IsArray
 
matchesSafely(T[]) - Method in class org.hamcrest.collection.IsArrayContaining
 
matchesSafely(Iterable<T>) - Method in class org.hamcrest.collection.IsCollectionContaining
 
matchesSafely(Map<K, V>) - Method in class org.hamcrest.collection.IsMapContaining
 
matchesSafely(Double) - Method in class org.hamcrest.number.IsCloseTo
 
matchesSafely(T) - Method in class org.hamcrest.number.IsGreaterThan
 
matchesSafely(Class<?>) - Method in class org.hamcrest.object.IsCompatibleType
 
matchesSafely(EventObject) - Method in class org.hamcrest.object.IsEventFrom
 
matchesSafely(String) - Method in class org.hamcrest.text.IsEqualIgnoringCase
 
matchesSafely(String) - Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
 
matchesSafely(String) - Method in class org.hamcrest.text.SubstringMatcher
 
matchesSafely(T) - Method in class org.hamcrest.TypeSafeMatcher
Subclasses should implement this.
matchesSafely(Node) - Method in class org.hamcrest.xml.HasXPath
 
method(Matcher<Method>) - Method in interface org.jmock.syntax.MethodClause
 
method(String) - Method in interface org.jmock.syntax.MethodClause
 
MethodClause - Interface in org.jmock.syntax
 
mock(Class<T>, String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Create a mock object of type T with an explicit name.
mock(Class<T>) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Create a mock object of type T with a name derived from its type.
mock(Class<T>) - Method in class org.jmock.Mockery
Creates a mock object of type typeToMock and generates a name for it.
mock(Class<T>, String) - Method in class org.jmock.Mockery
Creates a mock object of type typeToMock with the given name.
Mockery - Class in org.jmock
A Mockery represents the context, or neighbourhood, of the object(s) under test.
Mockery() - Constructor for class org.jmock.Mockery
 
mockeryOfTest(Object) - Method in class org.jmock.integration.junit4.JMockTestClassMethodsRunner
 
MockObjectNamingScheme - Interface in org.jmock.api
Creates names for mock objects that have not explicitly been given a name.
MockObjectTestCase - Class in org.jmock.integration.junit3
A TestCase that supports testing with mock objects.
MockObjectTestCase() - Constructor for class org.jmock.integration.junit3.MockObjectTestCase
 
MockObjectTestCase(String) - Constructor for class org.jmock.integration.junit3.MockObjectTestCase
 

N

never(T) - Method in class org.jmock.Expectations
 
never(T) - Method in interface org.jmock.syntax.CardinalityClause
 
NO_PARAMETERS - Static variable in class org.jmock.api.Invocation
 
not(Matcher<T>) - Static method in class org.hamcrest.core.IsNot
Inverts the rule.
not(T) - Static method in class org.hamcrest.core.IsNot
This is a shortcut to the frequently used not(equalTo(x)).
not(Matcher<T>) - Static method in class org.hamcrest.Matchers
 
not(T) - Static method in class org.hamcrest.Matchers
 
notNullValue() - Static method in class org.hamcrest.core.IsNull
Matches if value is not null.
notNullValue() - Static method in class org.hamcrest.Matchers
 
nullValue() - Static method in class org.hamcrest.core.IsNull
Matches if value is null.
nullValue() - Static method in class org.hamcrest.Matchers
 

O

of(T) - Method in interface org.jmock.syntax.ReceiverClause
 
of(Matcher<Object>) - Method in interface org.jmock.syntax.ReceiverClause
 
onConsecutiveCalls(Action...) - Method in class org.jmock.Expectations
 
one(T) - Method in class org.jmock.Expectations
 
one(T) - Method in interface org.jmock.syntax.CardinalityClause
 
OrderingComparisons - Class in org.hamcrest.number
 
OrderingComparisons() - Constructor for class org.hamcrest.number.OrderingComparisons
 
org.hamcrest - package org.hamcrest
 
org.hamcrest.beans - package org.hamcrest.beans
 
org.hamcrest.collection - package org.hamcrest.collection
 
org.hamcrest.core - package org.hamcrest.core
 
org.hamcrest.number - package org.hamcrest.number
 
org.hamcrest.object - package org.hamcrest.object
 
org.hamcrest.text - package org.hamcrest.text
 
org.hamcrest.xml - package org.hamcrest.xml
 
org.jmock - package org.jmock
The jMock "Domain-Specific Embedded Language" API.
org.jmock.api - package org.jmock.api
The stable API that is used to extend jMock at it's published plug-in points.
org.jmock.integration.junit3 - package org.jmock.integration.junit3
Integrates jMock with JUnit 3.
org.jmock.integration.junit4 - package org.jmock.integration.junit4
Integrates jMock with JUnit 4.
org.jmock.lib - package org.jmock.lib
Implementations of the core interfaces that are used to adjust or extend jMock's basic functionality.
org.jmock.lib.action - package org.jmock.lib.action
Actions that fake the behaviour of mocked invocations.
org.jmock.lib.nonstd - package org.jmock.lib.nonstd
Non-standard and unsupported/unsupportable classes that are otherwise really useful.
org.jmock.syntax - package org.jmock.syntax
Interfaces that define jMock's Domain Specific Embedded Language.

P

ParametersClause - Interface in org.jmock.syntax
 
PropertyUtil - Class in org.hamcrest.beans
Utility class for accessing properties on JavaBean objects.
PropertyUtil() - Constructor for class org.hamcrest.beans.PropertyUtil
 

R

ReceiverClause - Interface in org.jmock.syntax
 
relationship() - Method in class org.hamcrest.text.StringContains
 
relationship() - Method in class org.hamcrest.text.StringEndsWith
 
relationship() - Method in class org.hamcrest.text.StringStartsWith
 
relationship() - Method in class org.hamcrest.text.SubstringMatcher
 
RetroNamingScheme - Class in org.jmock.lib
A naming scheme in which the implicit name for a mock object is the mocked type's name prepend with "mock".
RetroNamingScheme() - Constructor for class org.jmock.lib.RetroNamingScheme
 
returnIterator(Collection<?>) - Method in class org.jmock.Expectations
 
returnIterator(T...) - Method in class org.jmock.Expectations
 
ReturnIteratorAction - Class in org.jmock.lib.action
Returns an iterator over a collection.
ReturnIteratorAction(Collection<?>) - Constructor for class org.jmock.lib.action.ReturnIteratorAction
 
ReturnIteratorAction(Object...) - Constructor for class org.jmock.lib.action.ReturnIteratorAction
 
returnValue(Object) - Method in class org.jmock.Expectations
 
ReturnValueAction - Class in org.jmock.lib.action
Returns a value.
ReturnValueAction(Object) - Constructor for class org.jmock.lib.action.ReturnValueAction
 
runBare() - Method in class org.jmock.integration.junit3.VerifyingTestCase
 

S

same(T) - Method in class org.jmock.Expectations
 
sameInstance(T) - Static method in class org.hamcrest.core.IsSame
Creates a new instance of IsSame
sameInstance(T) - Static method in class org.hamcrest.Matchers
 
SelfDescribing - Interface in org.hamcrest
The ability of an object to describe itself.
sequence(String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Returns a new sequence that is used to constrain the order in which expectations can occur.
sequence(String) - Method in class org.jmock.Mockery
Returns a new sequence that is used to constrain the order in which expectations can occur.
Sequence - Interface in org.jmock
A sequence of expectations; invocations can be constrained to occur in a strict order defined by a sequence.
setDefaultResultForType(Class<?>, Object) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Sets the result returned for the given type when no return value has been explicitly specified in the expectation.
setDefaultResultForType(Class<?>, Object) - Method in class org.jmock.Mockery
Sets the result returned for the given type when no return value has been explicitly specified in the expectation.
setExpectationErrorTranslator(ExpectationErrorTranslator) - Method in class org.jmock.Mockery
Changes the expectation error translator used to translate expectation errors into errors that report test failures.
setImposteriser(Imposteriser) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Changes the imposteriser used to adapt mock objects to the mocked type.
setImposteriser(Imposteriser) - Method in class org.jmock.Mockery
Changes the imposteriser used to adapt mock objects to the mocked type.
setNamingScheme(MockObjectNamingScheme) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Changes the naming scheme used to generate names for mock objects that have not been explicitly named in the test.
setNamingScheme(MockObjectNamingScheme) - Method in class org.jmock.Mockery
Changes the naming scheme used to generate names for mock objects that have not been explicitly named in the test.
startsAs(String) - Method in interface org.jmock.States
Put the state machine into state initialState.
startsWith(String) - Static method in class org.hamcrest.Matchers
 
startsWith(String) - Static method in class org.hamcrest.text.StringStartsWith
 
states(String) - Method in class org.jmock.integration.junit3.MockObjectTestCase
Returns a new state machine that is used to constrain the order in which expectations can occur.
states(String) - Method in class org.jmock.Mockery
Returns a new state machine that is used to constrain the order in which expectations can occur.
States - Interface in org.jmock
A state machine that is used to constrain the order of invocations.
StatesClause - Interface in org.jmock.syntax
 
StringContains - Class in org.hamcrest.text
Tests if the argument is a string that contains a substring.
StringContains(String) - Constructor for class org.hamcrest.text.StringContains
 
StringDescription - Class in org.hamcrest
 
StringDescription() - Constructor for class org.hamcrest.StringDescription
 
StringDescription(StringBuffer) - Constructor for class org.hamcrest.StringDescription
 
StringEndsWith - Class in org.hamcrest.text
Tests if the argument is a string that contains a substring.
StringEndsWith(String) - Constructor for class org.hamcrest.text.StringEndsWith
 
StringStartsWith - Class in org.hamcrest.text
Tests if the argument is a string that contains a substring.
StringStartsWith(String) - Constructor for class org.hamcrest.text.StringStartsWith
 
stripSpace(String) - Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
 
substring - Variable in class org.hamcrest.text.SubstringMatcher
 
SubstringMatcher - Class in org.hamcrest.text
 
SubstringMatcher(String) - Constructor for class org.hamcrest.text.SubstringMatcher
 

T

then(State) - Method in class org.jmock.Expectations
 
ThrowAction - Class in org.jmock.lib.action
Throws an exception.
ThrowAction(Throwable) - Constructor for class org.jmock.lib.action.ThrowAction
 
throwException(Throwable) - Method in class org.jmock.Expectations
 
toString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
 
toString() - Method in class org.hamcrest.StringDescription
 
toString() - Method in error org.jmock.api.ExpectationError
 
toString() - Method in class org.jmock.api.Invocation
 
translate(ExpectationError) - Method in interface org.jmock.api.ExpectationErrorTranslator
Translates the given ExpectationError into an error type compatible with another testing framework.
translate(ExpectationError) - Method in class org.jmock.integration.junit3.JUnit3ErrorTranslator
 
translate(ExpectationError) - Method in class org.jmock.lib.AssertionErrorTranslator
 
translate(ExpectationError) - Method in class org.jmock.lib.IdentityExpectationErrorTranslator
 
typeCompatibleWith(Class<T>) - Static method in class org.hamcrest.Matchers
 
typeCompatib