Earlier in this thread your example showed the table passed into the
Given method as a String.
@When("I do something with a table $tableContent")
public void doSomethingWithATable(String tableContent){
ExamplesTable table = new ExamplesTable(tableContent);
// use table to retrieve contents by row
}
Later in the thread, it was passed as an ExamplesTable? Was that due
to supporting changes made in 2.4, and for 2.3 we will still need to
pass the table as a String? Also, below you mention the need to write
a converter. Is this what you're talking about?
private List<Trader> toTraders(ExamplesTable table) {
List<Trader> traders = new ArrayList<Trader>();
List<Map<String, String>> rows = table.getRows();
for (Map<String, String> row : rows) {
String name = row.get("name");
String rank = row.get("rank");
traders.add(new Trader(name, rank));
}
Collections.sort(traders);
return traders;
}
Thanks.
On Tue, Dec 22, 2009 at 2:14 PM, Mauro Talevi
<[email protected]> wrote:
> Christopher Gardner wrote:
>>
>> Mauro,
>>
>> When do you think 2.4 will be released? I'd love to start taking
>> advantage of the examples table functionality.
>>
>
> Hi Christopher,
>
> examples table functionality is actually already released in 2.3.x
>
> The only thing that is in 2.4 is the converter which is really quite a minor
> addition, which you can easily implement yourself from the examples.
>
> That said, I'd like to release 2.4 quite soon, just after the holidays.
>
> The major feature focus of 2.4 was file-based reporting (HTML in particular)
> and that is pretty much wrapped up now (I was just about to send out an
> email about it).
>
> Then there are a few other bits and pieces targeted for 2.4 but they are
> nice to have and the more we can fit in the better. But if we can't get
> them sorted in a reasonable timebox, we should release and push them to 2.5.
>
> Cheers
>
>
>
> ---------------------------------------------------------------------
> 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