use of org.jbehave.example.spring.security.domain.UserBuilder in project jbehave-core by jbehave.
the class UserSteps method createUsersFromTable.
@Given("the users for $orgName: $userTable")
public void createUsersFromTable(String orgName, ExamplesTable table) {
Organization org = organizationDao.findByName(orgName);
List<Parameters> parametersList = table.getRowsAsParameters(true);
for (Parameters parameters : parametersList) {
userDao.persist(new UserBuilder(org, parameters, table.getHeaders()).build());
}
}
Aggregations