Search in sources :

Example 1 with AuthenticationPolicyBuilder

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);
}
Also used : AuthenticationPolicyBuilder(org.jbehave.example.spring.security.domain.AuthenticationPolicyBuilder) Organization(org.jbehave.example.spring.security.domain.Organization) Given(org.jbehave.core.annotations.Given)

Aggregations

Given (org.jbehave.core.annotations.Given)1 AuthenticationPolicyBuilder (org.jbehave.example.spring.security.domain.AuthenticationPolicyBuilder)1 Organization (org.jbehave.example.spring.security.domain.Organization)1