Hummm... ok
Cold you give some clue or an example how could I inject the whole table
on a method? I've tried to create ExamplesTableConverter but doesnt
works so....
I could create a converter that allowed me to put a separated by comma
array list inside some ExampleTable cell.... but this doesnt help me
because I cant have field names...
but I couldnt figure out how to inject a the table...
regards
Mauro Talevi escreveu:
Hi Cristiano,
rows in the table have no identifier so cannot be "named".
If you want to work with an entire row, you can inject the whole table
and retrieve the single rows by row number.
Cheers
Cristiano Gavião wrote:
Hi Mauro,
Is there a way to inject the entire row from a table example as a
table parameter instead of had to create named parameter for each
column on table?
@Given("a stock with this information <row_table>")
public void theTraders(@named("row_table") ExamplesTable tradersTable) {
//TODO work with the entire row here...
}
Given a stock with this information <row_table>
When user solds the stoks
Then system should do something
Examples:
|symbol|threshold|price|status|
|STK1|10.0|5.0|OFF|
|STK1|10.0|11.0|ON|
regards
Cristiano
Thanks
Cristiano
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email