mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user