!**< def
!define body (|''name is default within''|name|
|''get''|@{@{this}.name}|is|@{name}|
)
!define body2 (|''other''|name|
|''name is default within''|@{name}|
)
!define test (!|fitlibrary.specify.dynamicVariable.DynamicVariablesUnderTest|
|define action|Person|
|${body}|
|define action|Person|
|${body2}|
|'''set'''|rick.name|'''to'''|Rick|
|'''set'''|rick.class|'''to'''|Person|
|'''oo'''|rick|''other''|Rick|
|''get''|@{this}|'''is'''|@{this}|
)
**!
There is no need to explicitly use an '''oo''' special action inside a defined action; if any action within the body can be applied with an '''oo''' it will be.
|!-fitlibrary.spec.SpecifyFixture-!|
|${test}|!-
fitlibrary.specify.dynamicVariable.DynamicVariablesUnderTest |
define action |
Person |
name is default within |
name |
get |
@{@{this}.name} |
is |
@{name} |
|
define action |
Person |
name is default within |
@{name} |
|
set |
rick.name |
to |
Rick |
set |
rick.class |
to |
Person |
-!|