Hi All,
I have a feature file say:
Given user adds following details:
|user_name |User_details |
|xyz_user |details{firstName=firstname, middleName=middileName, lastName=lastname} |
I want to map it to say:
@Given ("^user adds following details:$")
public void createUser(final String List<Users> users) throws Throwable { }
Where,
Users is the pojo like:
class Users {
private userName;
private Details details;
// Along with the setters and getter
}
Here Users is further having an object reference "Details".
How to create and handle such datatables having an object in one of its column?
I tried to create the DataTable with:
DataTable.create(usersList);
But it create the datatable with one one property. Like:
|user_name |User_details |
|xyz_user |firstname |
But i want the complete object.
Is there any way to do this?
Regards,
~Rinky