use of org.jbehave.example.spring.security.domain.AuthenticationPolicyBuilder in project jbehave-core by jbehave.
the class OrganizationSteps method updateOrganizationWithDefaultAuthPolicy.
@Given("authentication policy for $orgName: $authPolicyTable")
public void updateOrganizationWithDefaultAuthPolicy(String orgName, ExamplesTable table) {
Organization org = organizationDao.findByName(orgName);
Map<String, String> row = table.getRow(0);
org.setAuthenticationPolicy(new AuthenticationPolicyBuilder(row).build());
organizationDao.persist(org);
}
Aggregations