-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce columnTitle attribute for the @table annotation
- Loading branch information
Jan Schäfer
committed
Feb 27, 2015
1 parent
5c07a1d
commit 7ed4b86
Showing
5 changed files
with
93 additions
and
3 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,11 @@ public DataTableStage a_list_of_lists_is_used_as_parameter( | |
return self(); | ||
} | ||
|
||
public DataTableStage a_list_of_lists_is_used_as_parameter_with_column_titles( | ||
@Table( columnTitles = { "Name", "Email" } ) List<List<String>> table ) { | ||
return self(); | ||
} | ||
|
||
public DataTableStage a_list_of_POJOs_is_used_as_parameters( | ||
@Table TestCustomer... testCustomer ) { | ||
return self(); | ||
|
@@ -58,6 +63,15 @@ public void a_list_of_list_can_be_used_as_table_parameter() { | |
); | ||
} | ||
|
||
@Test | ||
public void a_list_of_list_can_be_used_as_table_parameter_and_column_titles_can_be_set() { | ||
given().a_list_of_lists_is_used_as_parameter_with_column_titles( | ||
asList( | ||
asList( "John Doe", "[email protected]" ), | ||
asList( "Jane Roe", "[email protected]" ) ) | ||
); | ||
} | ||
|
||
@Test | ||
public void a_list_of_POJOs_can_be_represented_as_data_tables() { | ||
given().a_list_of_POJOs_is_used_as_parameters( | ||
|