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(java.lang.Object, java.lang.String, java.lang.Object, java.lang.Object) - Method in MockInterceptor
AllTestSuite - Class in groovy.test
AllTestSuite can be used in extension of GroovyTestSuite to execute TestCases written in Groovy from inside a Java IDE.
assertArrayEquals(java.lang.Object, java.lang.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(java.lang.String, java.lang.String) - Method in GroovyTestCase
assertInspect(java.lang.Object, java.lang.String) - Method in GroovyTestCase
Asserts that the value of inspect() on the given object matches the given text string
assertLength(int, java.lang.Object) - Method in GroovyTestCase
Asserts that the array of objects has a given length
assertMultilineStringsEqual(java.lang.String, java.lang.String) - Method in StringTestUtil
assertScript(groovy.lang.GroovyShell, java.lang.String) - Method in GroovyAssert
Asserts that the script runs using the given shell without any exceptions
assertScript(java.lang.String) - Method in GroovyTestCase
assertToString(java.lang.Object, java.lang.String) - Method in GroovyTestCase
Asserts that the value of toString() on the given object matches the given text string

B

beforeGet(java.lang.Object, java.lang.String) - Method in MockInterceptor
beforeInvoke(java.lang.Object, java.lang.String, java.lang.Object) - Method in MockInterceptor
beforeSet(java.lang.Object, java.lang.String, java.lang.Object) - Method in MockInterceptor
behavior - Property in CallSpec
buildTest(java.lang.String, java.lang.String) - Method in JavadocAssertionTestBuilder

C

CallSpec - Class in groovy.mock.interceptor
CallSpec() - Constructor in CallSpec
clazz - Property in MockFor
clazz - Property in StubFor
compile(java.lang.String) - Method in AllTestSuite
compile(java.lang.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.
Demand() - Constructor in Demand
demand - Property in MockFor
demand - Property in StubFor
doInvoke() - Method in MockInterceptor

E

exception - Field in NotYetImplemented
If defined, tests which unexpectedly pass will throw this exception.
expect - Property in MockFor
expect - Property in StubFor
expectation - Property in MockInterceptor

F

fail(java.lang.String) - Method in GroovyAssert
fCalls - Property in LooseExpectation
fCalls - Property in StrictExpectation
fCallSpecIdx - Property in StrictExpectation
fDemand - Property in LooseExpectation
fDemand - Property in StrictExpectation
file - Field in GroovyTestSuite
fixEOLs(java.lang.String) - Method in GroovyTestCase
Returns a copy of a string in which all EOLs are \n.

G

genericScriptName() - Method in GroovyAssert
Returns:
a generic script name to be used by GroovyShell#evaluate calls.
getInstance(java.lang.Class, java.lang.Object) - 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(java.lang.Class, java.lang.Object, java.lang.String, boolean, boolean) - Method in MockProxyMetaClass
getTestClassName() - Method in GroovyTestCase
GroovyAssert - Class in groovy.test
GroovyLogTestCase - Class in groovy.test
Helper class to spoof log entries as produced by calling arbitrary code.
GroovyLogTestCase() - Constructor in GroovyLogTestCase
GroovyShellTestCase - Class in groovy.test
Groovy test case, which recreates internal GroovyShell in each setUp()
GroovyShellTestCase() - Constructor in GroovyShellTestCase
GroovyTestCase - Class in groovy.test
A JUnit 3 TestCase base class in Groovy.
GroovyTestSuite - Class in groovy.test
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 - Property in Demand
Ignore() - Constructor in Ignore
ignore - Property in MockFor
ignore - Property in StubFor
instanceExpectations - Property in MockFor
instanceExpectations - Property in StubFor
interceptConstruction - Field in MockProxyMetaClass
invokeConstructor(java.lang.Object) - Method in MockProxyMetaClass
Unlike general impl in superclass, ctors are not intercepted but relayed unless interceptConstruction is set.
invokeMethod(java.lang.String, java.lang.Object) - Method in Demand
invokeMethod(java.lang.String, java.lang.Object) - Method in Ignore
invokeMethod(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean) - Method in MockProxyMetaClass
invokeStaticMethod(java.lang.Object, java.lang.String, java.lang.Object) - Method in MockProxyMetaClass
isAtLeastJdk(java.lang.String) - Method in GroovyAssert
Returns:
true if the JDK version is at least the version given by specVersion (e.g. "1.8", "9.0")
isEligible(java.lang.String, int) - Method in LooseExpectation

J

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

K

L

loader - Field in GroovyTestSuite
loadTest(java.lang.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(groovy.mock.interceptor.Demand) - Constructor in LooseExpectation

M

main(java.lang.String) - Method in GroovyTestSuite
main(java.lang.String) - Method in JavadocAssertionTestSuite
make(java.lang.Class, boolean) - Method in MockProxyMetaClass
convenience factory method allowing interceptConstruction to be set.
makeProxyInstance(java.lang.Object, boolean) - Method in MockFor
makeProxyInstance(java.lang.Object, boolean) - Method in StubFor
match(java.lang.String) - Method in LooseExpectation
Match the requested method name against eligible demands.
match(java.lang.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(java.lang.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.
MockInterceptor() - Constructor in MockInterceptor
MockProxyMetaClass - Class in groovy.mock.interceptor
MockProxyMetaClass(groovy.lang.MetaClassRegistry, java.lang.Class, groovy.lang.MetaClass, boolean) - Constructor in MockProxyMetaClass
Parameters:
adaptee - the MetaClass to decorate with interceptability

N

name - Property in CallSpec
NotYetImplemented - Annotation Type in groovy.test
Method annotation used to invert test case results.
notYetImplemented(java.lang.Object) - Method in GroovyAssert
notYetImplemented() - Method in GroovyTestCase
Convenience method for subclasses of GroovyTestCase, identical to
 GroovyTestCase.notYetImplemented(this); 
.
NotYetImplementedASTTransformation - Class in org.apache.groovy.test.transform
Generates code for the @NotYetImplemented annotation.

O

P

parent - Property in Ignore
proxy - Property in MockFor
proxy - Property in StubFor
proxyDelegateInstance(java.lang.Object) - Method in MockFor
Allows a more traditional instance-style mocking paradigm.
proxyDelegateInstance(java.lang.Object) - Method in StubFor
Allows a more traditional instance-style stubbing paradigm.
proxyInstance(java.lang.Object) - Method in MockFor
Allows a more traditional instance-style mocking paradigm.
proxyInstance(java.lang.Object) - Method in StubFor
Allows a more traditional instance-style stubbing paradigm.

Q

R

range - Property in CallSpec
recorded - Property in Demand
run(junit.framework.TestResult) - Method in ScriptTestAdapter

S

ScriptTestAdapter - Class in org.apache.groovy.test
An adapter to make any Groovy Script class an instance of a JUnit Test
ScriptTestAdapter(java.lang.Class, java.lang.String) - Constructor in ScriptTestAdapter
setProperty(java.lang.Class, java.lang.Object, java.lang.String, java.lang.Object, boolean, boolean) - Method in MockProxyMetaClass
setUp() - Method in GroovyShellTestCase
shell - Field in GroovyShellTestCase
shouldFail(groovy.lang.GroovyShell, java.lang.String) - Method in GroovyAssert
Asserts that the given script fails when it is evaluated using the given shell
shouldFail(java.lang.String) - Method in GroovyTestCase
shouldFailWithCause(java.lang.Class, groovy.lang.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(java.lang.Class, groovy.lang.Closure) - Method in GroovyTestCase
StrictExpectation - Class in groovy.mock.interceptor
Expects demanded call cardinalities to match demanded ranges in the sequence of recording.
StrictExpectation(groovy.mock.interceptor.Demand) - Constructor in StrictExpectation
stringLog(java.util.logging.Level, java.lang.String, groovy.lang.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.test
StringTestUtil() - Constructor in StringTestUtil
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(java.lang.Class, boolean) - Constructor in StubFor
suite(java.lang.String, java.lang.String, java.lang.String) - Method in AllTestSuite
suite() - Method in GroovyTestSuite
suite(java.lang.String, java.lang.String, java.lang.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(groovy.lang.GroovyObject, groovy.lang.Closure) - Method in MockFor
use(groovy.lang.GroovyObject, groovy.lang.Closure) - Method in StubFor

V

verify(java.util.List) - Method in Demand
verify() - Method in LooseExpectation
verify all calls are in expected range
verify(groovy.lang.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(org.codehaus.groovy.ast.ASTNode, org.codehaus.groovy.control.SourceUnit) - Method in NotYetImplementedASTTransformation

W

withBinding(java.util.Map, java.lang.String) - Method in GroovyShellTestCase
Evaluates script with given binding
withLevel(java.util.logging.Level, java.lang.String, groovy.lang.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 _