A C D E F G I J M N O P R S T W

A

AbstractFileTestCase - Class in net.grinder.testutility
Abstract test case that manages a temporary directory.
AbstractFileTestCase() - Constructor for class net.grinder.testutility.AbstractFileTestCase
 
AbstractJUnit4FileTestCase - Class in net.grinder.testutility
Abstract base class for test cases that manage a temporary directory.
AbstractJUnit4FileTestCase() - Constructor for class net.grinder.testutility.AbstractJUnit4FileTestCase
 
AbstractStubFactory<T> - Class in net.grinder.testutility
Dynamic proxy based test utility class that records details of invocations and allows a controlling unit test to later enquire about which invocations occurred and in what order.
AbstractStubFactory(Class<T>, InvocationHandler) - Constructor for class net.grinder.testutility.AbstractStubFactory
 
argumentMatches(T) - Method in class net.grinder.testutility.MockingUtilities.TypedArgumentMatcher
 
assertArrayContainsAll(Object[], Object[]) - Static method in class net.grinder.testutility.AssertUtilities
 
assertArraysEqual(Object[], Object[]) - Static method in class net.grinder.testutility.AssertUtilities
 
assertArraysEqual(String, Object[], Object[]) - Static method in class net.grinder.testutility.AssertUtilities
 
assertArraysEqual(byte[], byte[]) - Static method in class net.grinder.testutility.AssertUtilities
 
assertArraysEqual(String, byte[], byte[]) - Static method in class net.grinder.testutility.AssertUtilities
 
assertContains(String, String) - Static method in class net.grinder.testutility.AssertUtilities
 
assertContainsHeader(String, String, String) - Static method in class net.grinder.testutility.AssertUtilities
 
assertContainsPattern(String, String) - Static method in class net.grinder.testutility.AssertUtilities
 
assertEndsWith(String, String) - Static method in class net.grinder.testutility.AssertUtilities
 
assertException(String, Throwable, Object...) - Method in interface net.grinder.testutility.CallAssertions
Check the given method was called, and that it threw the given exception.
assertException(String, Throwable, Class<?>...) - Method in interface net.grinder.testutility.CallAssertions
 
assertException(String, Class<?>, Object...) - Method in interface net.grinder.testutility.CallAssertions
Check the given method was called, and that it threw an exception of the given type.
assertException(String, Class<?>, Class<?>...) - Method in interface net.grinder.testutility.CallAssertions
 
assertException(String, Throwable, Object...) - Method in class net.grinder.testutility.CallData
 
assertException(String, Throwable, Class<?>...) - Method in class net.grinder.testutility.CallData
 
assertException(String, Class<?>, Object...) - Method in class net.grinder.testutility.CallData
 
assertException(String, Class<?>, Class<?>...) - Method in class net.grinder.testutility.CallData
 
assertException(String, Throwable, Object...) - Method in class net.grinder.testutility.CallRecorder
 
assertException(String, Throwable, Class<?>...) - Method in class net.grinder.testutility.CallRecorder
 
assertException(String, Class<?>, Object...) - Method in class net.grinder.testutility.CallRecorder
 
assertException(String, Class<?>, Class<?>...) - Method in class net.grinder.testutility.CallRecorder
 
assertNoMoreCalls() - Method in class net.grinder.testutility.CallRecorder
Check that no methods have been called.
assertNoStderr() - Method in class net.grinder.testutility.RedirectStandardStreams
 
assertNoStdout() - Method in class net.grinder.testutility.RedirectStandardStreams
 
assertNotEquals(Object, Object) - Static method in class net.grinder.testutility.AssertUtilities
 
assertStartsWith(String, String) - Static method in class net.grinder.testutility.AssertUtilities
 
assertSuccess(String, Object...) - Method in interface net.grinder.testutility.CallAssertions
 
assertSuccess(String, Class<?>...) - Method in interface net.grinder.testutility.CallAssertions
 
assertSuccess(String, Object...) - Method in class net.grinder.testutility.CallData
Check the given method was called.
assertSuccess(String, Class<?>...) - Method in class net.grinder.testutility.CallData
 
assertSuccess(String) - Method in class net.grinder.testutility.CallData
 
assertSuccess(String, Object...) - Method in class net.grinder.testutility.CallRecorder
 
assertSuccess(String, Class<?>...) - Method in class net.grinder.testutility.CallRecorder
 
AssertUtilities - Class in net.grinder.testutility
Stuff missing from JUnit.
AssertUtilities() - Constructor for class net.grinder.testutility.AssertUtilities
 

C

CallAssertions - Interface in net.grinder.testutility
 
CallData - Class in net.grinder.testutility
Method call data.
CallData(Method, Object, Object...) - Constructor for class net.grinder.testutility.CallData
 
CallData(Method, Throwable, Object...) - Constructor for class net.grinder.testutility.CallData
 
CallData.ANY_TYPE - Class in net.grinder.testutility
Class that represents a parameter that is compatible with any type.
CallData.ANY_TYPE() - Constructor for class net.grinder.testutility.CallData.ANY_TYPE
 
CallRecorder - Class in net.grinder.testutility
Utility class used to record and assert method invocations.
CallRecorder() - Constructor for class net.grinder.testutility.CallRecorder
 
CallRecorder.MethodFilter - Interface in net.grinder.testutility
 
containsRegex(String) - Static method in class net.grinder.testutility.MockingUtilities
Like Matchers.matches(java.lang.String), but uses find rather than matches, so supports multi-line strings.
copy(InputStream, OutputStream) - Method in class net.grinder.testutility.StreamCopier
Copies from the input stream to the output stream until the input stream is empty or one of the streams reports an error.
CountingInputStream - Class in net.grinder.testutility
 
CountingInputStream(InputStream) - Constructor for class net.grinder.testutility.CountingInputStream
 
countLines(File) - Static method in class net.grinder.testutility.FileUtilities
 
create(T) - Static method in class net.grinder.testutility.DelegatingStubFactory
 
create(Class<T>) - Static method in class net.grinder.testutility.RandomStubFactory
 
createFile(File, List<String>) - Static method in class net.grinder.testutility.FileUtilities
 
createFile(File, String...) - Static method in class net.grinder.testutility.FileUtilities
 
createRandomFile(File) - Static method in class net.grinder.testutility.FileUtilities
 

D

DelegatingStubFactory<T> - Class in net.grinder.testutility
AbstractStubFactory that intercepts and records invocations to a delegate.
delete() - Method in class net.grinder.testutility.TemporaryDirectory
 
doIt() - Method in class net.grinder.testutility.Time
 

E

equalContents(T) - Static method in class net.grinder.testutility.MockingUtilities
 

F

fileContents(File) - Static method in class net.grinder.testutility.FileUtilities
 
FileUtilities - Class in net.grinder.testutility
File utilities used by the unit tests.
FileUtilities() - Constructor for class net.grinder.testutility.FileUtilities
 
findFreePort() - Static method in class net.grinder.testutility.SocketUtilities
 

G

generateParameter(Class<?>) - Method in class net.grinder.testutility.RandomObjectFactory
 
generateParameters(Class<?>[]) - Method in class net.grinder.testutility.RandomObjectFactory
 
getAllInterfaces(Class<?>) - Static method in class net.grinder.testutility.AbstractStubFactory
 
getCallHistory() - Method in class net.grinder.testutility.CallRecorder
 
getCalls() - Method in class net.grinder.testutility.CountingInputStream
 
getClass(K) - Static method in class net.grinder.testutility.AbstractStubFactory
Localise need for unchecked cast.
getCount() - Method in class net.grinder.testutility.CountingInputStream
 
getDirectory() - Method in class net.grinder.testutility.AbstractFileTestCase
 
getDirectory() - Method in class net.grinder.testutility.AbstractJUnit4FileTestCase
 
getDirectory() - Method in class net.grinder.testutility.TemporaryDirectory
 
getFactory(Object) - Static method in class net.grinder.testutility.AbstractStubFactory
Return the cached AbstractStubFactory for stub.
getIsolatedObject() - Static method in class net.grinder.testutility.IsolatedObjectFactory
 
getIsolatedObjectClass() - Static method in class net.grinder.testutility.IsolatedObjectFactory
 
getLastDelay() - Method in class net.grinder.testutility.StubTimer
 
getLastPeriod() - Method in class net.grinder.testutility.StubTimer
 
getLastScheduledTimerTask() - Method in class net.grinder.testutility.StubTimer
 
getLineCount() - Method in class net.grinder.testutility.StubPrintStream
 
getLineCount() - Method in class net.grinder.testutility.StubPrintWriter
 
getMethod() - Method in class net.grinder.testutility.CallData
 
getMethodName() - Method in class net.grinder.testutility.CallData
 
getOutputAndReset() - Method in class net.grinder.testutility.StubPrintStream
 
getOutputAndReset() - Method in class net.grinder.testutility.StubPrintWriter
 
getParameters() - Method in class net.grinder.testutility.CallData
 
getParameterTypes() - Method in class net.grinder.testutility.CallData
 
getResult() - Method in class net.grinder.testutility.CallData
 
getStderrBytes() - Method in class net.grinder.testutility.RedirectStandardStreams
 
getStdoutBytes() - Method in class net.grinder.testutility.RedirectStandardStreams
 
getStub() - Method in class net.grinder.testutility.AbstractStubFactory
 
getTaskByPeriod(long) - Method in class net.grinder.testutility.StubTimer
 
getThrowable() - Method in class net.grinder.testutility.CallData
 

I

invoke(Object, Method, Object[]) - Method in class net.grinder.testutility.OverrideInvocationHandlerDecorator
 
invoke(Object, Method, Object[]) - Method in class net.grinder.testutility.RandomObjectFactory.NullInvocationHandler
 
invoke(Object, Method, Object[]) - Method in class net.grinder.testutility.StubRelationshipsInvocationHandlerDecorator
 
IsolatedObjectFactory - Class in net.grinder.testutility
Create objects that unknown to the standard class loaders.
IsolatedObjectFactory() - Constructor for class net.grinder.testutility.IsolatedObjectFactory
 

J

J2SE_TIME_ACCURACY_MILLIS - Static variable in class net.grinder.testutility.Time
We slacken assertions about time to account for precision of J2SE time API.

M

matches(Method) - Method in interface net.grinder.testutility.CallRecorder.MethodFilter
 
matches(Object) - Method in class net.grinder.testutility.MockingUtilities.TypedArgumentMatcher
 
MockingUtilities - Class in net.grinder.testutility
Mocking utility classes for use with Mockito.
MockingUtilities() - Constructor for class net.grinder.testutility.MockingUtilities
 
MockingUtilities.TypedArgumentMatcher<T> - Class in net.grinder.testutility
Prettier version of ArgumentMatcher.
MockingUtilities.TypedArgumentMatcher() - Constructor for class net.grinder.testutility.MockingUtilities.TypedArgumentMatcher
 

N

net.grinder.testutility - package net.grinder.testutility
 
newFile(String) - Method in class net.grinder.testutility.TemporaryDirectory
 

O

override_compareTo(Object, Object) - Method in class net.grinder.testutility.SimpleEqualityDecoration
 
override_equals(Object, Object) - Method in class net.grinder.testutility.SimpleEqualityDecoration
 
override_hashCode(Object) - Method in class net.grinder.testutility.SimpleEqualityDecoration
 
override_toString(Object) - Method in class net.grinder.testutility.SimpleEqualityDecoration
 
OverrideInvocationHandlerDecorator - Class in net.grinder.testutility
InvocationHandler decorator that allows a supplied object to handle some of the methods.
OverrideInvocationHandlerDecorator(InvocationHandler, Object) - Constructor for class net.grinder.testutility.OverrideInvocationHandlerDecorator
 
OverrideInvocationHandlerDecorator(InvocationHandler, Object, String) - Constructor for class net.grinder.testutility.OverrideInvocationHandlerDecorator
 

P

peekFirst() - Method in class net.grinder.testutility.CallRecorder
 
println() - Method in class net.grinder.testutility.StubPrintStream
 
println() - Method in class net.grinder.testutility.StubPrintWriter
 

R

RandomObjectFactory - Class in net.grinder.testutility
Factory that generates various types of test object.
RandomObjectFactory() - Constructor for class net.grinder.testutility.RandomObjectFactory
 
RandomObjectFactory.NullInvocationHandler - Class in net.grinder.testutility
 
RandomObjectFactory.NullInvocationHandler() - Constructor for class net.grinder.testutility.RandomObjectFactory.NullInvocationHandler
 
RandomStubFactory<T> - Class in net.grinder.testutility
AbstractStubFactory that takes a Class and generates stubs that support all the interface of the given class and have methods that return random primitive results and null objects for complex results.
RandomStubFactory(Class<T>) - Constructor for class net.grinder.testutility.RandomStubFactory
 
read() - Method in class net.grinder.testutility.CountingInputStream
 
read(byte[]) - Method in class net.grinder.testutility.CountingInputStream
 
read(byte[], int, int) - Method in class net.grinder.testutility.CountingInputStream
 
readLastLine(File) - Static method in class net.grinder.testutility.FileUtilities
 
record(CallData) - Method in class net.grinder.testutility.CallRecorder
 
RedirectStandardStreams - Class in net.grinder.testutility
Utility template which redirects and restores stdout and stderr.
RedirectStandardStreams() - Constructor for class net.grinder.testutility.RedirectStandardStreams
 
resetCallHistory() - Method in class net.grinder.testutility.CallRecorder
Reset the call data.
run() - Method in class net.grinder.testutility.RedirectStandardStreams
 
run() - Method in class net.grinder.testutility.Time
 
runWithRedirectedStreams() - Method in class net.grinder.testutility.RedirectStandardStreams
 

S

s_random - Static variable in class net.grinder.testutility.AbstractFileTestCase
 
schedule(TimerTask, long, long) - Method in class net.grinder.testutility.StubTimer
 
schedule(TimerTask, long) - Method in class net.grinder.testutility.StubTimer
 
serialize(T) - Static method in class net.grinder.testutility.Serializer
 
Serializer - Class in net.grinder.testutility
Serialisation utility.
Serializer() - Constructor for class net.grinder.testutility.Serializer
 
setCanAccess(File, boolean) - Static method in class net.grinder.testutility.FileUtilities
 
setIgnoreCallOrder(boolean) - Method in class net.grinder.testutility.CallRecorder
 
setIgnoreMethod(String) - Method in class net.grinder.testutility.CallRecorder
 
setIgnoreObjectMethods() - Method in class net.grinder.testutility.CallRecorder
 
setResult(String, Object) - Method in class net.grinder.testutility.AbstractStubFactory
 
setThrows(String, Throwable) - Method in class net.grinder.testutility.AbstractStubFactory
 
SimpleEqualityDecoration - Class in net.grinder.testutility
Stub that provides simple equality and Comparable semantics.
SimpleEqualityDecoration(String) - Constructor for class net.grinder.testutility.SimpleEqualityDecoration
 
SocketUtilities - Class in net.grinder.testutility
Socket utilities for unit tests.
SocketUtilities() - Constructor for class net.grinder.testutility.SocketUtilities
 
StreamCopier - Class in net.grinder.testutility
Class that copies from InputStreams to OutputStreams.
StreamCopier(int) - Constructor for class net.grinder.testutility.StreamCopier
Constructor.
StreamCopier() - Constructor for class net.grinder.testutility.StreamCopier
 
StubPrintStream - Class in net.grinder.testutility
 
StubPrintStream() - Constructor for class net.grinder.testutility.StubPrintStream
 
StubPrintWriter - Class in net.grinder.testutility
 
StubPrintWriter() - Constructor for class net.grinder.testutility.StubPrintWriter
 
StubRelationshipsInvocationHandlerDecorator - Class in net.grinder.testutility
InvocationHandler decorator that intercepts get methods and provides stubs generated by RandomStubFactorys.
StubRelationshipsInvocationHandlerDecorator(InvocationHandler) - Constructor for class net.grinder.testutility.StubRelationshipsInvocationHandlerDecorator
 
StubTimer - Class in net.grinder.testutility
Stub implementation of Timer.
StubTimer() - Constructor for class net.grinder.testutility.StubTimer
 
subclass(Class<T>) - Static method in class net.grinder.testutility.MockingUtilities
 

T

tearDown() - Method in class net.grinder.testutility.AbstractFileTestCase
 
tearDown() - Method in class net.grinder.testutility.AbstractJUnit4FileTestCase
 
TemporaryDirectory - Class in net.grinder.testutility
Temporary directory for use by unit tests.
TemporaryDirectory() - Constructor for class net.grinder.testutility.TemporaryDirectory
 
Time - Class in net.grinder.testutility
Abstract base class which times a method and returns whether it executed within the given range.
Time(long, long) - Constructor for class net.grinder.testutility.Time
 
toString() - Method in class net.grinder.testutility.CallData
 
toString() - Method in class net.grinder.testutility.CountingInputStream
 
toString() - Method in class net.grinder.testutility.RedirectStandardStreams
 

W

waitUntilCalled(int) - Method in class net.grinder.testutility.CallRecorder
Wait until we're called.

A C D E F G I J M N O P R S T W

Copyright © 2000-2012. All Rights Reserved.