Groovy Documentation

lsst.gruth.grutils
[Groovy] Class RawTestSpec

java.lang.Object
  lsst.gruth.grutils.RawTestSpec

class RawTestSpec

this data is created by _test method and modified by its own methods. It does not represent a test because the rawArgs field may represent combinations of parameters for a constructor, factory, or method call.


Property Summary
groovy.lang.Closure expectations

code to be run after executing this specific test and before tearDown.

java.util.Map rawArgs

groovy.lang.Closure setUp

code to be run before executing this specific test.

groovy.lang.Closure tearDown

code to be run after executing this specific test.

 
Constructor Summary
RawTestSpec()

 
Method Summary
RawTestSpec _post(groovy.lang.Closure clos)

Code to be executed after each test run in this combination of test described by _test method.

RawTestSpec _pre(groovy.lang.Closure clos)

Code to be executed before each test run in this combination of test described by _test method.

RawTestSpec _xpect(groovy.lang.Closure clos)

code that analyses the properties of the calls described by the _test method.

 
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

expectations

groovy.lang.Closure expectations
code to be run after executing this specific test and before tearDown. It should test expectations.


rawArgs

java.util.Map rawArgs


setUp

groovy.lang.Closure setUp
code to be run before executing this specific test.


tearDown

groovy.lang.Closure tearDown
code to be run after executing this specific test.


 
Constructor Detail

RawTestSpec

RawTestSpec()


 
Method Detail

_post

RawTestSpec _post(groovy.lang.Closure clos)
Code to be executed after each test run in this combination of test described by _test method.
Parameters:
clos
Returns:


_pre

RawTestSpec _pre(groovy.lang.Closure clos)
Code to be executed before each test run in this combination of test described by _test method.
Parameters:
clos
Returns:


_xpect

RawTestSpec _xpect(groovy.lang.Closure clos)
code that analyses the properties of the calls described by the _test method. This code may describe assertions that will modify the result of each test
Parameters:
clos
Returns:


 

Groovy Documentation