Skip to content

Commit 41ccbb4

Browse files
mlvandijkmpkorstanje
authored andcommitted
Update DataTable hint
1 parent d282666 commit 41ccbb4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

java/src/main/java/cucumber/runtime/java/AbstractJavaSnippet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ private String getArgType(Type argType) {
3535
public final String tableHint() {
3636
return "" +
3737
" // For automatic transformation, change DataTable to one of\n" +
38-
" // List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
38+
" // E, List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
3939
" // Map<K, List<V>>. E,K,V must be a String, Integer, Float,\n" +
40-
" // Double, Byte Short, Long, BigInteger or BigDecimal.\n" +
40+
" // Double, Byte, Short, Long, BigInteger or BigDecimal.\n" +
4141
" //\n" +
4242
" // For other transformations you can register a DataTableType.\n"; //TODO: Add doc URL
4343
}

java/src/test/java/cucumber/runtime/java/JavaSnippetTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ public void generatesSnippetWithDataTable() {
231231
"public void i_have(DataTable dataTable) {\n" +
232232
" // Write code here that turns the phrase above into concrete actions\n" +
233233
" // For automatic transformation, change DataTable to one of\n" +
234-
" // List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
234+
" // E, List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
235235
" // Map<K, List<V>>. E,K,V must be a String, Integer, Float,\n" +
236-
" // Double, Byte Short, Long, BigInteger or BigDecimal.\n" +
236+
" // Double, Byte, Short, Long, BigInteger or BigDecimal.\n" +
237237
" //\n" +
238238
" // For other transformations you can register a DataTableType.\n" +
239239
" throw new cucumber.api.PendingException();\n" +
@@ -263,9 +263,9 @@ public String transform(String... strings) {
263263
"public void i_have_in_table(String dataTable, DataTable dataTable1) {\n" +
264264
" // Write code here that turns the phrase above into concrete actions\n" +
265265
" // For automatic transformation, change DataTable to one of\n" +
266-
" // List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
266+
" // E, List<E>, List<List<E>>, List<Map<K,V>>, Map<K,V> or\n" +
267267
" // Map<K, List<V>>. E,K,V must be a String, Integer, Float,\n" +
268-
" // Double, Byte Short, Long, BigInteger or BigDecimal.\n" +
268+
" // Double, Byte, Short, Long, BigInteger or BigDecimal.\n" +
269269
" //\n" +
270270
" // For other transformations you can register a DataTableType.\n" +
271271
// " //\n" +

0 commit comments

Comments
 (0)