-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve get/setProperty type coerse of CSV class
Allow to do some magic with execution variables without manual coersing ```groovy def order = new order(execution) assert order.someCSV instanceof CSV // if CSV is correct, instead it will be String assert order.someList instanceof List // null value converts to [], non-list became [non-list value] assert order.someJSON instanceof Map // null converts to [:], non-map returns without conversion assert order.someMap instanceof Map order.someCSV = new CSV([a:1,b:2]) assert.executionVariable('homsOrderDataSomeCSV') == 'a;b\n1;2' order.someList = [1,2] assert.executionVariable('homsOrderDataSomeList') == '[1,2]' order.someJSON = [a:1,b:2] assert.executionVariable('homsOrderDataSomeJSON') == '{a:1,b:2}' ```
- Loading branch information
dolfinus
committed
Sep 29, 2019
1 parent
237cdb5
commit 834ef9d
Showing
2 changed files
with
135 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters