use of org.ff4j.test.DefinedPermissionSecurityManager in project ff4j by ff4j.
the class AuditBeanTest method testEventBuider.
@Test
public void testEventBuider() {
FF4j ff4j = new FF4j();
ff4j.setAuthorizationsManager(new DefinedPermissionSecurityManager("a", Util.set("1", "2")));
EventBuilder eb = new EventBuilder(ff4j);
eb.name("FeatureX");
Assert.assertEquals("a", eb.build().getUser());
}
Aggregations