A C F G I L M N O R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AllTestSuite - Class in groovy.util
-
AllTestSuite can be used in extension of GroovyTestSuite to execute TestCases written in Groovy from inside a Java IDE.
- AllTestSuite() - Constructor for class groovy.util.AllTestSuite
- assertArrayEquals(Object[], Object[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the arrays are equivalent and contain the same values
- assertContains(char, char[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the array of characters contains a given char
- assertContains(int, int[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the array of ints contains a given int
- assertEquals(Object, Object) - Static method in class groovy.util.GroovyTestCase
- assertEquals(String, Object, Object) - Static method in class groovy.util.GroovyTestCase
- assertEquals(String, String) - Static method in class groovy.util.GroovyTestCase
- assertInspect(Object, String) - Method in class groovy.util.GroovyTestCase
-
Asserts that the value of inspect() on the given object matches the given text string
- assertLength(int, char[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the array of characters has a given length
- assertLength(int, int[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the array of ints has a given length
- assertLength(int, Object[]) - Method in class groovy.util.GroovyTestCase
-
Asserts that the array of objects has a given length
- assertScript(String) - Static method in class groovy.test.GroovyAssert
-
Asserts that the script runs without any exceptions
- assertScript(String) - Method in class groovy.util.GroovyTestCase
- assertToString(Object, String) - Method in class groovy.util.GroovyTestCase
-
Asserts that the value of toString() on the given object matches the given text string
C
- compile(String) - Method in class groovy.util.AllTestSuite
- compile(String) - Method in class groovy.util.GroovyTestSuite
- countTestCases() - Method in class org.codehaus.groovy.runtime.ScriptTestAdapter
F
- file - Static variable in class groovy.util.GroovyTestSuite
- fixEOLs(String) - Method in class groovy.util.GroovyTestCase
-
Returns a copy of a string in which all EOLs are \n.
G
- genericScriptName() - Static method in class groovy.test.GroovyAssert
- getMethodName() - Method in class groovy.util.GroovyTestCase
- getName() - Method in class groovy.util.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 class groovy.mock.interceptor.MockProxyMetaClass
- getTestClassName() - Method in class groovy.util.GroovyTestCase
- groovy.mock.interceptor - package groovy.mock.interceptor
- groovy.test - package groovy.test
- groovy.transform - package groovy.transform
- groovy.util - package groovy.util
- GroovyAssert - Class in groovy.test
-
GroovyAssert
contains a set of static assertion and test helper methods and is supposed to be a Groovy extension of JUnit 4'sAssert
class. - GroovyAssert - Class in groovy.util
-
Deprecated.Use the
GroovyAssert
class instead - GroovyAssert() - Constructor for class groovy.test.GroovyAssert
- GroovyAssert() - Constructor for class groovy.util.GroovyAssert
-
Deprecated.
- GroovyTestCase - Class in groovy.util
-
A JUnit 3
TestCase
base class in Groovy. - GroovyTestCase() - Constructor for class groovy.util.GroovyTestCase
- 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.
- GroovyTestSuite() - Constructor for class groovy.util.GroovyTestSuite
I
- interceptConstruction - Variable in class groovy.mock.interceptor.MockProxyMetaClass
- invokeConstructor(Object[]) - Method in class groovy.mock.interceptor.MockProxyMetaClass
-
Unlike general impl in superclass, ctors are not intercepted but relayed unless interceptConstruction is set.
- invokeMethod(Object, String, Object[]) - Method in class groovy.mock.interceptor.MockProxyMetaClass
- invokeStaticMethod(Object, String, Object[]) - Method in class groovy.mock.interceptor.MockProxyMetaClass
- isAtLeastJdk(String) - Static method in class groovy.test.GroovyAssert
L
- loader - Variable in class groovy.util.GroovyTestSuite
- loadTest(String) - Method in class groovy.util.AllTestSuite
- loadTestSuite() - Method in class groovy.util.GroovyTestSuite
- log - Static variable in class groovy.util.GroovyTestCase
M
- main(String[]) - Static method in class groovy.util.GroovyTestSuite
- make(Class) - Static method in class groovy.mock.interceptor.MockProxyMetaClass
-
convenience factory method for the most usual case.
- make(Class, boolean) - Static method in class groovy.mock.interceptor.MockProxyMetaClass
-
convenience factory method allowing interceptConstruction to be set.
- MockProxyMetaClass - Class in groovy.mock.interceptor
-
The ProxyMetaClass for the MockInterceptor.
- MockProxyMetaClass(MetaClassRegistry, Class, MetaClass) - Constructor for class groovy.mock.interceptor.MockProxyMetaClass
- MockProxyMetaClass(MetaClassRegistry, Class, MetaClass, boolean) - Constructor for class groovy.mock.interceptor.MockProxyMetaClass
N
- notYetImplemented() - Method in class groovy.util.GroovyTestCase
-
Convenience method for subclasses of GroovyTestCase, identical to
- notYetImplemented(Object) - Static method in class groovy.test.GroovyAssert
-
Runs the calling JUnit test again and fails only if it unexpectedly runs.
This is helpful for tests that don't currently work but should work one day, when the tested functionality has been implemented. - notYetImplemented(Object) - Static method in class groovy.util.GroovyTestCase
- NotYetImplemented - Annotation Type in groovy.transform
-
Method annotation used to invert test case results.
- NotYetImplementedASTTransformation - Class in org.codehaus.groovy.transform
-
Handles generation of code for the
@NotYetImplemented
annotation. - NotYetImplementedASTTransformation() - Constructor for class org.codehaus.groovy.transform.NotYetImplementedASTTransformation
O
- org.codehaus.groovy.runtime - package org.codehaus.groovy.runtime
- org.codehaus.groovy.transform - package org.codehaus.groovy.transform
R
- run(TestResult) - Method in class org.codehaus.groovy.runtime.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 for class org.codehaus.groovy.runtime.ScriptTestAdapter
- setProperty(Class, Object, String, Object, boolean, boolean) - Method in class groovy.mock.interceptor.MockProxyMetaClass
- shouldFail(Closure) - Static method in class groovy.test.GroovyAssert
-
Asserts that the given code closure fails when it is evaluated
- shouldFail(Closure) - Static method in class groovy.util.GroovyAssert
-
Deprecated.Asserts that the given code closure fails when it is evaluated
- shouldFail(Closure) - Method in class groovy.util.GroovyTestCase
- shouldFail(Class, Closure) - Static method in class groovy.test.GroovyAssert
-
Asserts that the given code closure fails when it is evaluated and that a particular type of exception is thrown.
- shouldFail(Class, Closure) - Static method in class groovy.util.GroovyAssert
-
Deprecated.Asserts that the given code closure fails when it is evaluated and that a particular exception is thrown.
- shouldFail(Class, Closure) - Method in class groovy.util.GroovyTestCase
- shouldFail(Class, String) - Static method in class groovy.test.GroovyAssert
-
Asserts that the given script fails when it is evaluated and that a particular type of exception is thrown.
- shouldFail(Class, String) - Method in class groovy.util.GroovyTestCase
- shouldFail(String) - Static method in class groovy.test.GroovyAssert
-
Asserts that the given script fails when it is evaluated
- shouldFail(String) - Method in class groovy.util.GroovyTestCase
- shouldFailWithCause(Class, Closure) - Static method in class groovy.test.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) - Static method in class groovy.util.GroovyAssert
-
Deprecated.Asserts that the given code closure fails when it is evaluated and that a particular exception can be attributed to the cause.
- shouldFailWithCause(Class, Closure) - Method in class groovy.util.GroovyTestCase
- suite() - Static method in class groovy.util.AllTestSuite
- suite() - Static method in class groovy.util.GroovyTestSuite
- suite(String, String) - Static method in class groovy.util.AllTestSuite
- suite(String, String, String) - Static method in class groovy.util.AllTestSuite
- SYSPROP_TEST_DIR - Static variable in class groovy.util.AllTestSuite
-
The System Property to set as base directory for collection of Test Cases.
- SYSPROP_TEST_EXCLUDES_PATTERN - Static variable in class groovy.util.AllTestSuite
-
The System Property to set as a filename excludes pattern for collection of Test Cases.
- SYSPROP_TEST_PATTERN - Static variable in class groovy.util.AllTestSuite
-
The System Property to set as the filename pattern for collection of Test Cases.
T
- TEST_SCRIPT_NAME_PREFIX - Static variable in class groovy.test.GroovyAssert
- TEST_SCRIPT_NAME_PREFIX - Static variable in class groovy.util.GroovyTestCase
- toString() - Method in class org.codehaus.groovy.runtime.ScriptTestAdapter
V
- visit(ASTNode[], SourceUnit) - Method in class org.codehaus.groovy.transform.NotYetImplementedASTTransformation
All Classes All Packages