}
List<SimpleHistoryEntry> list = contactDao.getSimpleHistoryEntries(a1);
assertEquals(5, list.size());
for (int i = 0; i < 2; i++) {
final SimpleHistoryEntry se = list.get(i);
if ("name".equals(se.getPropertyName()) == true) {
assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History 2", "History test");
} else {
assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.2").getId(), getTask("1.1").getId());
}
}
SimpleHistoryEntry se = list.get(2);
assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.1").getId(), getTask("1.2").getId());
se = list.get(3);
assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History test", "History 2");
se = list.get(4);
assertSimpleHistoryEntry(se, user, HistoryEntryType.INSERT, null, null, null, null);