use of org.jbehave.example.spring.security.domain.AuthenticationPolicy in project jbehave-core by jbehave.
the class OrganizationSteps method createOrganizationWithName.
@Given("an organization named $orgNames")
@Alias("organizations named $orgNames")
public void createOrganizationWithName(List<String> orgNames) {
for (String orgName : orgNames) {
Organization org = new Organization();
org.setName(orgName);
org.setAuthenticationPolicy(new AuthenticationPolicy());
organizationDao.persist(org);
}
}
use of org.jbehave.example.spring.security.domain.AuthenticationPolicy in project jbehave-core by jbehave.
the class OrganizationSteps method updateOrganizationWithDefaultAuthPolicy.
@Given("a default authentication policy for $orgName")
public void updateOrganizationWithDefaultAuthPolicy(String orgName) {
Organization org = organizationDao.findByName(orgName);
org.setAuthenticationPolicy(new AuthenticationPolicy());
organizationDao.persist(org);
}
Aggregations