jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r577870 - /jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java
Date Thu, 20 Sep 2007 18:49:38 GMT
Author: jukka
Date: Thu Sep 20 11:49:38 2007
New Revision: 577870

URL: http://svn.apache.org/viewvc?rev=577870&view=rev
Log:
1.3: Merged revision 571395 (JCR-1101)

Modified:
    jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java

Modified: jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java?rev=577870&r1=577869&r2=577870&view=diff
==============================================================================
--- jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java
(original)
+++ jackrabbit/branches/1.3/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AbstractObservationTest.java
Thu Sep 20 11:49:38 2007
@@ -17,8 +17,10 @@
 package org.apache.jackrabbit.test.api.observation;
 
 import org.apache.jackrabbit.test.AbstractJCRTest;
+import org.apache.jackrabbit.test.NotExecutableException;
 
 import javax.jcr.RepositoryException;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.observation.Event;
 import javax.jcr.observation.EventListener;
 import javax.jcr.observation.ObservationManager;
@@ -46,7 +48,12 @@
 
     protected void setUp() throws Exception {
         super.setUp();
-        obsMgr = superuser.getWorkspace().getObservationManager();
+        try {
+            obsMgr = superuser.getWorkspace().getObservationManager();
+        }
+        catch (UnsupportedRepositoryOperationException ex) {
+            throw new NotExecutableException("observation not supported");
+        }
     }
 
     /**



Mime
View raw message