svn commit: r1052386 - in /lenya/branches/BRANCH_2_1_X/src/modules/notification: ./ java/test/org/apache/lenya/notification/NotificationTest.java
[email protected] Thu, 23 Dec 2010 21:55:20 -0000
| Newsgroups | gmane.comp.cms.lenya.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: andreas
Date: Thu Dec 23 21:55:19 2010
New Revision: 1052386
URL: http://svn.apache.org/viewvc?rev=1052386&view=rev
Log:
Merged 1052382:1052383 from 2.0.x branch: Fix test case (set repository event URI).
Modified:
lenya/branches/BRANCH_2_1_X/src/modules/notification/ (props changed)
lenya/branches/BRANCH_2_1_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java
Propchange: lenya/branches/BRANCH_2_1_X/src/modules/notification/
------------------------------------------------------------------------------
svn:mergeinfo = /lenya/branches/BRANCH_2_0_X/src/modules/notification:1052383
Modified: lenya/branches/BRANCH_2_1_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java?rev=1052386&r1=1052385&r2=1052386&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java (original)
+++ lenya/branches/BRANCH_2_1_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java Thu Dec 23 21:55:19 2010
@@ -51,17 +51,19 @@ public class NotificationTest extends Ab
NotificationEventDescriptor descr = new NotificationEventDescriptor(message);
RepositoryEvent event = RepositoryEventFactory.createEvent(getManager(), session,
getLogger(), descr);
+ event.setNodeUri(getFactory().getPublication("default").getArea("authoring").getSite()
+ .getNode("/index").getLink("en").getDocument().getRepositoryNode().getSourceURI());
session.enqueueEvent(event);
-
+
Inbox inbox = getInbox(alice);
cleanUp(inbox, SUBJECT);
-
+
assertFalse(containsMessage(inbox, SUBJECT));
session.commit();
Thread.sleep(100);
assertTrue(containsMessage(inbox, SUBJECT));
-
+
cleanUp(inbox, SUBJECT);
}