Как указать в cucumber datatable список элементов
Можно ли как-то с datatable указать List?
Datatable:
| status | productName | backgroundColor | expectedFields |
| Disbursed | PDL | green | Loan status, Total Amount to Repay, Repayment date |
| Disbursed | IL | green | Loan status, Monthly Pay,Pay date,Contract number, Full name, Created date, Period number, Monthly pay, Pay date, Is completed |
я хочу чтобы expectedFields воспринимался как лист String
в степе прописала так
public void checkLoanInfo(List<String> expectedLoanFields, String expectedLoanStatus) {
}
Но получила ошибку Step failed io.cucumber.core.exception.CucumberException: Could not convert arguments for step [...] defined at 'cucumber.steps.WebSteps.checkLoanInfo(java.util.List<java.lang.String>,java.lang.String)'.