use of org.killbill.billing.util.audit.dao.MockAuditDao in project killbill by killbill.
the class TestUtilModuleNoDB method installAuditMock.
private void installAuditMock() {
bind(AuditDao.class).toInstance(new MockAuditDao());
bind(AuditUserApi.class).to(DefaultAuditUserApi.class).asEagerSingleton();
}
use of org.killbill.billing.util.audit.dao.MockAuditDao in project killbill by killbill.
the class TestDefaultAuditUserApi method beforeClass.
@Override
@BeforeClass(groups = "fast")
public void beforeClass() throws Exception {
super.beforeClass();
auditLogs = ImmutableList.<AuditLog>of(createAuditLog(), createAuditLog(), createAuditLog(), createAuditLog());
objectIds = ImmutableList.<UUID>of(UUID.randomUUID(), UUID.randomUUID(), UUID.randomUUID(), UUID.randomUUID());
for (final TableName tableName : TableName.values()) {
for (final UUID objectId : objectIds) {
for (final AuditLog auditLog : auditLogs) {
((MockAuditDao) auditDao).addAuditLogForId(tableName, objectId, auditLog);
}
}
}
}
Aggregations