|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.test.GroovyAssert
public class GroovyAssert
| Constructor Summary | |
|---|---|
GroovyAssert()
|
|
| Method Summary | |
|---|---|
static java.lang.Throwable |
shouldFail(java.lang.Class clazz,
Closure code)
Asserts that the given code closure fails when it is evaluated and that a particular type of exception is thrown. |
static java.lang.Throwable |
shouldFail(Closure code)
Asserts that the given code closure fails when it is evaluated |
static java.lang.Throwable |
shouldFailWithCause(java.lang.Class expectedCause,
Closure code)
Asserts that the given code closure fails when it is evaluated and that a particular Exception type can be attributed to the cause. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroovyAssert()
| Method Detail |
|---|
public static java.lang.Throwable shouldFail(Closure code)
code - the code expected to fail
public static java.lang.Throwable shouldFail(java.lang.Class clazz,
Closure code)
clazz - the class of the expected exceptioncode - the closure that should fail
public static java.lang.Throwable shouldFailWithCause(java.lang.Class expectedCause,
Closure code)
expectedCause - the class of the expected exceptioncode - the closure that should fail
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||