@Test public void testEnvelope() { AuditLogEntry entry = Mockito.mock(AuditLogEntry.class); AuditLogRepository repository = Mockito.mock(AuditLogRepository.class); AuditLogEntryEnvelope envelope = new AuditLogEntryEnvelope(entry, repository); envelope.run(); }
@Override public void run() { LOGGER.debug("storing auditLogEntry: {}", entry); repository.storeEntry(entry); LOGGER.debug("stored auditLogEntry: {}", entry); }
AuditLogEntryEnvelope implements Runnable { @Override public void run() { LOGGER.debug("storing auditLogEntry: {}", entry); repository.storeEntry(entry); LOGGER.debug("stored auditLogEntry: {}", entry); } }
AuditLogEntryEnvelope implements Runnable { @Override public void run() { LOGGER.debug("storing auditLogEntry: {}", entry); repository.storeEntry(entry); LOGGER.debug("stored auditLogEntry: {}", entry); } AuditLogEntryEnvelope(final AuditLogEntry entry, final AuditLogRepository repository); }
AuditLogEntryEnvelope implements Runnable { @Override public void run() { LOGGER.debug("storing auditLogEntry: {}", entry); repository.storeEntry(entry); LOGGER.debug("stored auditLogEntry: {}", entry); } AuditLogEntryEnvelope(final AuditLogEntry entry, final AuditLogRepository repository); @Override void run(); }
AuditLogEntryEnvelope implements Runnable { @Override public void run() { LOGGER.debug("storing auditLogEntry: {}", entry); repository.storeEntry(entry); LOGGER.debug("stored auditLogEntry: {}", entry); } AuditLogEntryEnvelope(final AuditLogEntry entry, final AuditLogRepository repository); @Override void run();  }