jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1163324 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Tue, 30 Aug 2011 18:34:52 GMT
Author: mduerig
Date: Tue Aug 30 18:34:52 2011
New Revision: 1163324

URL: http://svn.apache.org/viewvc?rev=1163324&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
observation: userData

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1163324&r1=1163323&r2=1163324&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Tue Aug 30 18:34:52 2011
@@ -1178,14 +1178,16 @@ public class RepositoryTest {
 
         final List<Event> failedEvents = new ArrayList<Event>();
 
+        final String userData = "my user data";
         ObservationManager obsMgr = getSession().getWorkspace().getObservationManager();
-        obsMgr.setUserData("my user data");
+        obsMgr.setUserData(userData);
         obsMgr.addEventListener(new EventListener() {
                 @Override
                 public void onEvent(EventIterator events) {
                     while (events.hasNext()) {
                         Event event = events.nextEvent();
                         try {
+                            assertEquals(userData, event.getUserData());
                             switch (event.getType()) {
                                 case Event.NODE_ADDED:
                                     if (!addNodes.remove(event.getPath())) {



Mime
View raw message