forked from expertisesolutions/tctautomated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PRE_prop_get_enum.template
23 lines (23 loc) · 1.02 KB
/
PRE_prop_get_enum.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Test]
[Category("P1")]
[Description("Calling Property Get Enum ${func.name}$.")]
[Property("SPEC", "${suite.name}$.${cls.name}$.${func.name}$_get M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRE")]
[Property("AUTHOR", "AutomaTest Boot, tct@automated")]
<!--(for field in argenum.type.typedecl.enum_fields)-->
public void ${func.name}$_${argenum.name}$_ENUM_GET_${field.c_constant}$()
{
${def_params(parameters=func.getter_args, prefix="get_arg_")}$
${m_show(mshow=func.arg_get_init)}$#!
${m_show(mshow=func.get_init)}$#!
/* CALLING PROPERTY */
get_arg_${argenum.name}$ = ${suite.type_convert(argenum.type)}$.${name_helpers.enum_field_managed_name(field)}$;
${callget()}$
<!--(for p in func.getter_values)-->
Assert.NotNull(get_arg_${p.name}$, "${p.name}$ should be readable");
<!--(end)-->
${m_show(mshow=func.arg_get_shutdown)}$#!
${m_show(mshow=func.get_shutdown)}$#!
}
<!--(end)-->