Skip to content

Commit 4bd8401

Browse files
committed
Update JavaSnippet for DataTable hint
1 parent ebd655e commit 4bd8401

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public String tableHint() {
2525
return " // For automatic transformation, change DataTable to one of\n" +
2626
" // List<YourType>, List<List<E>>, List<Map<K,V>> or Map<K,V>.\n" +
2727
" // E,K,V must be a scalar (String, Integer, Date, enum etc)\n" +
28-
" // Make sure the variable names for YourType match the column names\n" +
29-
" // in your feature file.\n";
28+
" // Field names for YourType must match the column names in \n" +
29+
" // your feature file.\n";
3030
}
3131

3232
@Override

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ public void generatesSnippetWithDataTable() {
154154
" // For automatic transformation, change DataTable to one of\n" +
155155
" // List<YourType>, List<List<E>>, List<Map<K,V>> or Map<K,V>.\n" +
156156
" // E,K,V must be a scalar (String, Integer, Date, enum etc)\n" +
157-
" // Make sure the variable names for YourType match the column names\n" +
158-
" // in your feature file.\n" +
157+
" // Field names for YourType must match the column names in \n" +
158+
" // your feature file.\n" +
159159
" throw new PendingException();\n" +
160160
"}\n";
161161
PickleTable dataTable = new PickleTable(asList(new PickleRow(asList(new PickleCell(null, "col1")))));

0 commit comments

Comments
 (0)