!**< def
!define body (|''name is for default object''|name|
|''get''|@{@{this}.name}|is|@{name}|
)
!define test (!|fitlibrary.specify.dynamicVariable.DynamicVariablesUnderTest|
|define action|Person|
|${body}|
|'''set'''|rick.name|'''to'''|Rick|
|'''set'''|rick.class|'''to'''|Person|
|'''set'''|this|'''to'''|rick|
|''name is for default object''|Rick|
)
**!
If the dynamic variable ''this'' is set, it's treated as the default object. This avoids the need to explicitly use an '''oo''' special action.
|!-fitlibrary.spec.SpecifyFixture-!|
|${test}|!-
fitlibrary.specify.dynamicVariable.DynamicVariablesUnderTest |
define action |
Person |
name is for default object |
name |
get |
@{@{this}.name} |
is |
@{name} |
|
set |
rick.name |
to |
Rick |
set |
rick.class |
to |
Person |
set |
this |
to |
rick |
name is for default object |
Rick |
-!|