ALF-10318 Update CalendarEntry to hold the created and modified at dates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2011-09-19 12:56:01 +00:00
parent fb406b769b
commit eced94e231
5 changed files with 88 additions and 7 deletions

View File

@@ -185,6 +185,9 @@ public class CalendarServiceImplTest
NodeRef site = NODE_SERVICE.getPrimaryParent(container).getParentRef();
assertEquals(CALENDAR_SITE.getNodeRef(), site);
// Tell the test system about it, for tidying later
testNodesToTidy.add(entry.getNodeRef());
// Check the details on the object
assertEquals("Title", entry.getTitle());
@@ -197,6 +200,10 @@ public class CalendarServiceImplTest
assertEquals(true, entry.isOutlook());
assertEquals("12345LookOut!", entry.getOutlookUID());
// Check that auditable properties turned up
assertNotNull(entry.getCreatedAt());
assertNotNull(entry.getModifiedAt());
// Fetch it, and check the details
entry = CALENDAR_SERVICE.getCalendarEntry(CALENDAR_SITE.getShortName(), entry.getSystemName());
@@ -210,9 +217,9 @@ public class CalendarServiceImplTest
assertEquals(true, entry.isOutlook());
assertEquals("12345LookOut!", entry.getOutlookUID());
// Mark it as done with
testNodesToTidy.add(entry.getNodeRef());
// Check that auditable properties turned up
assertNotNull(entry.getCreatedAt());
assertNotNull(entry.getModifiedAt());
}
@Test public void createUpdateDeleteEntry() throws Exception