@Test void testAuditUpdate() { when(mockSession.getAgent()).thenReturn(Trellis.AnonymousAgent); when(mockSession.getCreated()).thenReturn(created); when(mockSession.getDelegatedBy()).thenReturn(of(Trellis.AdministratorAgent)); final Dataset dataset = rdf.createDataset(); final AuditService svc = new DefaultAuditService() {}; svc.update(subject, mockSession).forEach(dataset::add); assertTrue(dataset.getGraph(Trellis.PreferAudit).filter(graph -> graph.size() == dataset.size()).isPresent()); assertTrue(dataset.contains(null, null, type, AS.Update)); assertAll("Event property check", checkEventProperties(dataset)); }
@Override public List<Quad> update(final IRI subject, final Session session) { return auditData(subject, session, asList(PROV.Activity, AS.Update)); }
DefaultAuditService implements AuditService { @Override public List<Quad> update(final IRI subject, final Session session) { return auditData(subject, session, asList(PROV.Activity, AS.Update)); } }
DefaultAuditService implements AuditService { @Override public List<Quad> update(final IRI subject, final Session session) { return auditData(subject, session, asList(PROV.Activity, AS.Update)); }  }
DefaultAuditService implements AuditService { @Override public List<Quad> update(final IRI subject, final Session session) { return auditData(subject, session, asList(PROV.Activity, AS.Update)); }  @Override List<Quad> creation(final IRI subject, final Session session); @Override List<Quad> deletion(final IRI subject, final Session session); @Override List<Quad> update(final IRI subject, final Session session); }
DefaultAuditService implements AuditService { @Override public List<Quad> update(final IRI subject, final Session session) { return auditData(subject, session, asList(PROV.Activity, AS.Update)); }  @Override List<Quad> creation(final IRI subject, final Session session); @Override List<Quad> deletion(final IRI subject, final Session session); @Override List<Quad> update(final IRI subject, final Session session);  }