@Test public void testGetDocumentReference() { DocumentReference calDocRef = new DocumentReference(context.getDatabase(), "mySpace", "myCalDoc"); cal = new Calendar(calDocRef, isArchiv); assertEquals(calDocRef, cal.getDocumentReference()); }
@Test @Deprecated public void testNewCalendar_deprecated_constructor() { DocumentReference calDocRef = new DocumentReference(context.getDatabase(), "mySpace", "myCalDoc"); XWikiDocument calDoc = new XWikiDocument(calDocRef); cal = new Calendar(calDoc, isArchiv, context); assertEquals(calDocRef, cal.getDocumentReference()); }