|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectlsst.gruth.grutils.TztRun
class TztRun
The final structure describing a test and allowing to run a test.
Property Summary | |
---|---|
java.lang.Object |
_args
the arguments to the tests |
java.lang.Object |
_argsNames
the names of the arguments passed to the test (remember those are tagged) |
java.lang.String |
_className
Name of class (duplicated in _report) |
java.lang.Object |
_it
the current object on which we operate (for methods only) |
java.lang.String |
_methodName
name of method ( special name "<build>" for constructors |
TztReport |
_report
|
java.lang.Object |
_result
data generated by the call to method or constructor (if any) |
java.lang.String |
_rootName
This is the root String from which the name ot the test (and of the variable built by constructors and factories) will be tagged. |
groovy.lang.Binding |
_this
|
groovy.lang.Binding |
_thisG
|
groovy.lang.Binding |
_thisL
local context shared by preCode, postCode and expectations |
boolean |
exceptionFired
|
groovy.lang.Closure |
expectations
|
groovy.lang.Closure |
postCode
|
groovy.lang.Closure |
preCode
|
java.lang.Class |
thatClazz
the current class |
java.lang.Object |
thatExecCode
Code to be executed (method, constructor) ( a methodClosure) |
boolean |
useRootNameOnly
|
Constructor Summary | |
TztRun(TztReport template, groovy.lang.Binding bindScript, groovy.lang.Binding bindGroup)
|
Method Summary | |
---|---|
java.lang.Object
|
_doNotReport()
|
java.lang.Object
|
_failIf(java.lang.String stringBooleanExpr)
Adds an AssertionReport to the current TztReport object: the result is FAILED if the evaluation of the string is true (the report also contains the evaluated string). |
java.lang.Object
|
_failIf(java.lang.String message, boolean booleanExpr)
Adds an AssertionReport to the current TztReport object: the result is FAILED if the evaluation of the expression is true (the report also contains the message) |
java.lang.Object
|
_failIfNot(java.lang.String stringBooleanExpr)
same specs as failIf but faisl if false |
java.lang.Object
|
_failIfNot(java.lang.String message, boolean booleanExpr)
same specs as failIf but fails if false |
java.lang.Object
|
_message(java.lang.String mess)
|
java.lang.Object
|
_neutral(java.lang.String stringExpression)
|
java.lang.Object
|
_neutral(java.lang.String message, groovy.lang.Closure closure)
|
java.lang.Object
|
_okIfCaught(java.lang.Class throwClass)
|
java.io.Serializable
|
_reportData(java.io.Serializable data)
used to add some data to the report (does not change the result of the test) |
java.lang.Object
|
_warnIf(java.lang.String stringBooleanExpr)
Adds an AssertionReport to the current TztReport object: the result is WARNINGS if the evaluation of the string is true (the report also contains the evaluated string). |
java.lang.Object
|
_warnIf(java.lang.String message, boolean booleanExpr)
Adds an AssertionReport to the current TztReport object: the result is WARNINGS if the evaluation of the expression is true (the report also contains the message) |
java.lang.Object
|
_warnIfNot(java.lang.String stringBooleanExpr)
same specs as warnIf but warns if false |
java.lang.Object
|
_warnIfNot(java.lang.String message, boolean booleanExpr)
same specs as warnIf but warns if false |
TztRun
|
clone()
|
private void
|
normalizeName()
|
void
|
reportException(java.lang.Throwable th, RawDiagnostic result)
|
void
|
run()
runs the test |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
java.lang.Object _args
java.lang.Object _argsNames
java.lang.String _className
java.lang.Object _it
java.lang.String _methodName
TztReport _report
java.lang.Object _result
java.lang.String _rootName
groovy.lang.Binding _this
groovy.lang.Binding _thisG
groovy.lang.Binding _thisL
boolean exceptionFired
groovy.lang.Closure expectations
groovy.lang.Closure postCode
groovy.lang.Closure preCode
java.lang.Class thatClazz
java.lang.Object thatExecCode
boolean useRootNameOnly
Constructor Detail |
---|
TztRun(TztReport template, groovy.lang.Binding bindScript, groovy.lang.Binding bindGroup)
Method Detail |
---|
java.lang.Object _doNotReport()
java.lang.Object _failIf(java.lang.String stringBooleanExpr)
stringBooleanExpr
- a Gstring representing a valid Groovy expression
java.lang.Object _failIf(java.lang.String message, boolean booleanExpr)
message
- to be displayed in the reportbooleanExpr
- before evaluating exceptionfired should be tested
java.lang.Object _failIfNot(java.lang.String stringBooleanExpr)
java.lang.Object _failIfNot(java.lang.String message, boolean booleanExpr)
java.lang.Object _message(java.lang.String mess)
java.lang.Object _neutral(java.lang.String stringExpression)
java.lang.Object _neutral(java.lang.String message, groovy.lang.Closure closure)
java.lang.Object _okIfCaught(java.lang.Class throwClass)
java.io.Serializable _reportData(java.io.Serializable data)
data
- any serializable data
java.lang.Object _warnIf(java.lang.String stringBooleanExpr)
stringBooleanExpr
- a Gstring representing a valid Groovy expression
java.lang.Object _warnIf(java.lang.String message, boolean booleanExpr)
message
- to be displayed in the report
java.lang.Object _warnIfNot(java.lang.String stringBooleanExpr)
java.lang.Object _warnIfNot(java.lang.String message, boolean booleanExpr)
TztRun clone()
private void normalizeName()
void reportException(java.lang.Throwable th, RawDiagnostic result)
void run()
Groovy Documentation