svn commit: r1052383 - /lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java
[email protected] Thu, 23 Dec 2010 21:36:30 -0000
| Newsgroups | gmane.comp.cms.lenya.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: andreas
Date: Thu Dec 23 21:36:30 2010
New Revision: 1052383
URL: http://svn.apache.org/viewvc?rev=1052383&view=rev
Log:
Fix test case (set repository event URI).
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java
Modified: lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java?rev=1052383&r1=1052382&r2=1052383&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/notification/java/test/org/apache/lenya/notification/NotificationTest.java Thu Dec 23 21:36:30 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);
}