Closed BuddhiWathsala closed 5 years ago
Resolve #61.
Support key-value map template replacement in this extension.
{{KEY}}
User can use this as follow.
str:fillTemplate("{{prize}} > 100 && {{salary}} < 10000", map:create('prize', 300, 'salary', 10000)))
300 > 100 && 10000 < 10000
Support str:fillTemplate(STRING, MAP) along with str:fillTemplate(STRING, STRING, ...)
str:fillTemplate(STRING, MAP)
str:fillTemplate(STRING, STRING, ...)
Added the FillTemplateTests and add the test class to TestNG XML
Java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
The release should be Support key value-based str:fillTemplate(STRING, MAP) along with index based str:fillTemplate(STRING, STRING, ...)
Purpose
Resolve #61.
Goals
Support key-value map template replacement in this extension.
Approach
{{KEY}}
using a regular expression.User stories
User can use this as follow.
Input
Output
Release note
Support
str:fillTemplate(STRING, MAP)
along withstr:fillTemplate(STRING, STRING, ...)
Automation tests
Test environment
Java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09)