Details
Description
Currently, ExamplesTable provides the row values as Map<String,String>.
In most cases, users will need to convert these values. We should provide the row values converted as specified types using the same ParameterConverters defined for the step conversion.
We should also allow for provision of defaults, both accessing single value and as a table structure.
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] |
Mauro Talevi
made changes -
Priority | Minor [ 4 ] | Major [ 3 ] |
Summary | Provide generic parameter conversion to List<T> | Provide conversion of table value |
Mauro Talevi
made changes -
Fix Version/s | 3.2 [ 16757 ] |
Mauro Talevi
made changes -
Summary | Provide conversion of table value | Provide table row values as converted parameters |
Issue Type | Improvement [ 4 ] | New Feature [ 2 ] |
Description | Currently to convert into a List<SomeType> it's necessary to register a custom ParameterConverter. By default it already provides the ability to convert into List<String> and List<subtype of Number>, but this should be extended to support all instances of List<T> as it will reduce the duplicate code necessary. |
Currently, ExamplesTable provides the row values as Map<String,String>.
In most cases, users will need to convert these values. We should provide the row values converted as specified types using the same ParameterConverters defined for the step conversion. We should also allow for provision of defaults, both accessing single value and as a table structure. |
Mauro Talevi
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mauro Talevi
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
I've pushed a patch into a branch on my github fork for this.
https://github.com/dgodfrey/jbehave-core/tree/nested-conversion