forked from expertisesolutions/tctautomated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMAE_prop_set_enum.template
20 lines (20 loc) · 1 KB
/
MAE_prop_set_enum.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Test]
[Category("P1")]
[Description("Calling Property Set Enum ${func.name}$.")]
[Property("SPEC", "${suite.name}$.${cls.name}$.${func.name}$_set M")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MAE")]
[Property("AUTHOR", "AutomaTest Boot, tct@automated")]
<!--(for field in argenum.type.typedecl.enum_fields)-->
public void ${func.name}$_${argenum.name}$_ENUM_SET_${field.c_constant}$()
{
${def_params(parameters=func.setter_args)}$
${m_show(mshow=func.arg_set_init)}$#!
${m_show(mshow=func.set_init)}$#!
arg_${argenum.name}$ = ${suite.type_convert(argenum.type)}$.${name_helpers.enum_field_managed_name(field)}$;
/* CALLING PROPERTY */
${meth_target(func=func, cls=cls)}$.Set${func.format_name}$(${', '.join([suite.print_arg(p) for p in list(func.setter_keys) + list(func.setter_values)])}$);
${m_show(mshow=func.arg_set_shutdown)}$#!
${m_show(mshow=func.set_shutdown)}$#!
}
<!--(end)-->