use of cz.metacentrum.perun.core.impl.AuditMessagesManagerImpl in project perun by CESNET.
the class AuditMessagesManagerEntryIntegrationTest method testLocalDate.
@Test
public void testLocalDate() throws Exception {
System.out.println(CLASS_NAME + "testLocalDate");
AuditMessagesManagerImpl auditMessagesManagerImpl = (AuditMessagesManagerImpl) ReflectionTestUtils.getField(perun.getAuditMessagesManagerBl(), "auditMessagesManagerImpl");
assertThat(auditMessagesManagerImpl).isNotNull();
ObjectMapper mapper = (ObjectMapper) ReflectionTestUtils.getField(auditMessagesManagerImpl, "mapper");
assertThat(mapper).isNotNull();
AuditEvent event = new SponsorshipEstablished(null, null, LocalDate.MIN);
testAuditEventMapper(mapper, event);
EnrichedSponsorship enrichedSponsorship = new EnrichedSponsorship();
enrichedSponsorship.setValidityTo(LocalDate.MAX);
AuditEvent event2 = new SponsorshipExpired();
testAuditEventMapper(mapper, event2);
}
Aggregations