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

A

afterInvoke(Object, String, Object, Object) - Method in MockInterceptor
AllTestSuite - Class in groovy.util
AllTestSuite can be used in extension of GroovyTestSuite to execute TestCases written in Groovy from inside a Java IDE.
assertArrayEquals(Object, Object) - Method in GroovyTestCase
Asserts that the arrays are equivalent and contain the same values
assertContains(int, int[]) - Method in GroovyTestCase
Asserts that the array of ints contains a given int
assertEquals(String, String) - Method in GroovyTestCase
assertInspect(Object, String) - Method in GroovyTestCase
Asserts that the value of inspect() on the given object matches the given text string
assertLength(int, Object) - Method in GroovyTestCase
Asserts that the array of objects has a given length
assertMultilineStringsEqual(String, String) - Method in StringTestUtil
assertScript(String) - Method in GroovyAssert
Asserts that the script runs without any exceptions
assertScript(String) - Method in GroovyTestCase
assertToString(Object, String) - Method in GroovyTestCase
Asserts that the value of toString() on the given object matches the given text string

B

beforeGet(Object, String) - Method in MockInterceptor
beforeInvoke(Object, String, Object) - Method in MockInterceptor
beforeSet(Object, String, Object) - Method in MockInterceptor
buildTest(String, String) - Method in JavadocAssertionTestBuilder

C

CallSpec - Class in groovy.mock.interceptor
compile(String) - Method in AllTestSuite
compile(String) - Method in GroovyTestSuite
countTestCases() - Method in ScriptTestAdapter
createNewShell() - Method in GroovyShellTestCase
Create new shell instance.

D

Demand - Class in groovy.mock.interceptor
The object that registers method calls on it for the use with Mocks and Stubs.
doInvoke() - Method in MockInterceptor

E

F

file - Field in GroovyTestSuite
fixEOLs(String) - Method in GroovyTestCase
Returns a copy of a string in which all EOLs are \n.

G

genericScriptName() - Method in GroovyAssert
@return a generic script name to be used by GroovyShell#evaluate calls.
getInstance(Class, def) - Method in MockFor
getMethodName() - Method in GroovyTestCase
getName() - Method in GroovyTestCase
Overload the getName() method to make the test cases look more like AgileDox (thanks to Joe Walnes for this tip!)
getProperty(Class, Object, String, boolean, boolean) - Method in MockProxyMetaClass
getTestClassName() - Method in GroovyTestCase
GroovyAssert - Class in groovy.test
GroovyLogTestCase - Class in groovy.lang
Helper class to spoof log entries as produced by calling arbitrary code.
GroovyShellTestCase - Class in groovy.util
Groovy test case, which recreates internal GroovyShell in each setUp ()
GroovyTestCase - Class in groovy.util
A JUnit 3 TestCase base class in Groovy.
GroovyTestSuite - Class in groovy.util
A TestSuite which will run a Groovy unit test case inside any Java IDE either as a unit test case or as an application.

H

I

Ignore - Class in groovy.mock.interceptor
Helper object to support convenience "ignore.methodName" notation similar to demand notation.
ignore(Object, Closure) - Method in MockFor
Allows particular method calls to be ignored and not treated as part of the required behavior specification.
ignore(Object, Closure) - Method in StubFor
Allows particular method calls to be ignored and not treated as part of the required behavior specification.
interceptConstruction - Field in MockProxyMetaClass
invokeConstructor(Object) - Method in MockProxyMetaClass
Unlike general impl in superclass, ctors are not intercepted but relayed unless interceptConstruction is set.
invokeMethod(String, Object) - Method in Demand
invokeMethod(String, Object) - Method in Ignore
invokeMethod(Object, String, Object) - Method in MockProxyMetaClass
invokeStaticMethod(Object, String, Object) - Method in MockProxyMetaClass
isEligible(String, int) - Method in LooseExpectation

J

JavadocAssertionTestBuilder - Class in groovy.util
JavadocAssertionTestBuilder will dynamically create a test cases from Groovy assertions placed within the Javadoc comments of a source file.
JavadocAssertionTestSuite - Class in groovy.util
JavadocAssertionTestSuite will dynamically create test cases from Groovy assertions placed within Javadoc comments.

K

L

loader - Field in GroovyTestSuite
loadTest(String) - Method in AllTestSuite
loadTestSuite() - Method in GroovyTestSuite
log - Field in GroovyTestCase
LooseExpectation - Class in groovy.mock.interceptor
Expects demanded call cardinalities to match demanded ranges.
LooseExpectation(Demand) - Constructor in LooseExpectation

M

main(String) - Method in GroovyTestSuite
main(String) - Method in JavadocAssertionTestSuite
make(Class, boolean) - Method in MockProxyMetaClass
convenience factory method allowing interceptConstruction to be set.
makeProxyInstance(def, boolean) - Method in MockFor
makeProxyInstance(def, boolean) - Method in StubFor
match(String) - Method in LooseExpectation
Match the requested method name against eligible demands.
match(String) - Method in StrictExpectation
Match the requested method name against eligible demands.
MockFor - Class in groovy.mock.interceptor
MockFor supports (typically unit) testing of classes in isolation by allowing a strictly ordered expectation of the behavior of collaborators to be defined.
MockFor(Class, boolean) - Constructor in MockFor
The optional interceptConstruction flag allows mocking of constructor calls.
MockInterceptor - Class in groovy.mock.interceptor
Intercepting calls to the collaborating object and notify the expectation object.
MockProxyMetaClass - Class in groovy.mock.interceptor
The ProxyMetaClass for the MockInterceptor.
MockProxyMetaClass(MetaClassRegistry, Class, MetaClass, boolean) - Method in MockProxyMetaClass
@param adaptee the MetaClass to decorate with interceptability

N

NotYetImplemented - Annotation Type in groovy.transform
Method annotation used to invert test case results.
notYetImplemented(Object) - Method in GroovyAssert
notYetImplemented() - Method in GroovyTestCase
Convenience method for subclasses of GroovyTestCase, identical to
 GroovyTestCase.notYetImplemented(this); 
.
NotYetImplementedASTTransformation - Class in org.codehaus.groovy.transform
Handles generation of code for the @NotYetImplemented annotation.

O

P

proxyDelegateInstance(def) - Method in MockFor
Allows a more traditional instance-style mocking paradigm.
proxyDelegateInstance(def) - Method in StubFor
Allows a more traditional instance-style stubbing paradigm.
proxyInstance(def) - Method in MockFor
Allows a more traditional instance-style mocking paradigm.
proxyInstance(def) - Method in StubFor
Allows a more traditional instance-style stubbing paradigm.

Q

R

run(TestResult) - Method in ScriptTestAdapter

S

ScriptTestAdapter - Class in org.codehaus.groovy.runtime
An adapter to make any Groovy Script class an instance of a JUnit Test
ScriptTestAdapter(Class, String) - Constructor in ScriptTestAdapter
setProperty(Class, Object, String, Object, boolean, boolean) - Method in MockProxyMetaClass
setUp() - Method in GroovyShellTestCase
shell - Field in GroovyShellTestCase
shouldFail(String) - Method in GroovyAssert
Asserts that the given script fails when it is evaluated
shouldFail(String) - Method in GroovyTestCase
shouldFailWithCause(Class, Closure) - Method in GroovyAssert
Asserts that the given code closure fails when it is evaluated and that a particular Exception type can be attributed to the cause.
shouldFailWithCause(Class, Closure) - Method in GroovyTestCase
StrictExpectation - Class in groovy.mock.interceptor
Expects demanded call cardinalities to match demanded ranges in the sequence of recording.
StrictExpectation(Demand) - Constructor in StrictExpectation
stringLog(Level, String, Closure) - Method in GroovyLogTestCase
Execute the given Closure with the according level for the Logger that is qualified by the qualifier and return the log output as a String.
StringTestUtil - Class in groovy.util
StubFor - Class in groovy.mock.interceptor
StubFor supports (typically unit) testing of classes in isolation by allowing a loosely-ordered expectation of the behavior of collaborators to be defined.
StubFor(Class, boolean) - Constructor in StubFor
suite(String, String, String) - Method in AllTestSuite
suite() - Method in GroovyTestSuite
suite(String, String, String) - Method in JavadocAssertionTestSuite
SYSPROP_SRC_DIR - Field in JavadocAssertionTestSuite
The System Property to set as base directory for collection of Classes.
SYSPROP_SRC_EXCLUDES_PATTERN - Field in JavadocAssertionTestSuite
The System Property to set as a filename excludes pattern for collection of Classes.
SYSPROP_SRC_PATTERN - Field in JavadocAssertionTestSuite
The System Property to set as the filename pattern for collection of Classes.
SYSPROP_TEST_DIR - Field in AllTestSuite
The System Property to set as base directory for collection of Test Cases.
SYSPROP_TEST_EXCLUDES_PATTERN - Field in AllTestSuite
The System Property to set as a filename excludes pattern for collection of Test Cases.
SYSPROP_TEST_PATTERN - Field in AllTestSuite
The System Property to set as the filename pattern for collection of Test Cases.

T

tearDown() - Method in GroovyShellTestCase
TEST_SCRIPT_NAME_PREFIX - Field in GroovyAssert
TEST_SCRIPT_NAME_PREFIX - Field in GroovyTestCase
toString() - Method in ScriptTestAdapter

U

use(GroovyObject, Closure) - Method in MockFor
use(GroovyObject, Closure) - Method in StubFor

V

verify(List) - Method in Demand
verify() - Method in LooseExpectation
verify all calls are in expected range
verify(GroovyObject) - Method in MockFor
If manual verification is required
verify() - Method in StrictExpectation
verify all calls are in expected range
verify() - Method in StubFor
Convenience method
visit(ASTNode, SourceUnit) - Method in NotYetImplementedASTTransformation

W

withBinding(Map, String) - Method in GroovyShellTestCase
Evaluates script with given binding
withLevel(Level, String, Closure) - Method in GroovyLogTestCase
Execute the given Closure with the according level for the Logger that is qualified by the qualifier.

X

Y

Z

_

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