assertHistoricalEvent(hibernateSession, targetObjectId, action, description, personId);
}
public void assertHistoricalEvent(MockSession hibernateSession, int targetObjectId, String action,
String description, int personId) {
HistoricalEvent event = getHistoricalEvent(hibernateSession, targetObjectId);
Assert.assertNotNull("no historical event", event);
Assert.assertEquals("wrong target ID", targetObjectId, event.getTargetObjectId());
Assert.assertEquals("wrong action", action, event.getAction());
Assert.assertEquals("wrong description", description, event.getDescription());
Assert.assertEquals("wrong personId", personId, event.getPersonId());
Assert.assertNotNull("wrong date", event.getWhen());
Assert.assertFalse("wrong notified flag", event.isNotified());
}