use of com.yahoo.elide.core.audit.AuditLogger in project elide by yahoo.
the class PermissionAnnotationTest method setup.
@BeforeAll
public static void setup() {
dictionary.bindEntity(FunWithPermissions.class);
FunWithPermissions fun = new FunWithPermissions();
fun.setId(1);
AuditLogger testLogger = new TestAuditLogger();
ElideSettings elideSettings = new ElideSettingsBuilder(null).withDefaultPageSize(10).withDefaultMaxPageSize(10).withAuditLogger(testLogger).withEntityDictionary(dictionary).build();
RequestScope goodScope = new RequestScope(null, null, NO_VERSION, null, null, GOOD_USER, null, null, UUID.randomUUID(), elideSettings);
funRecord = new PersistentResource<>(fun, goodScope.getUUIDFor(fun), goodScope);
RequestScope badScope = new RequestScope(null, null, NO_VERSION, null, null, BAD_USER, null, null, UUID.randomUUID(), elideSettings);
badRecord = new PersistentResource<>(fun, badScope.getUUIDFor(fun), badScope);
}
Aggregations