jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r480975 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
Date Thu, 30 Nov 2006 15:44:12 GMT
Author: mreutegg
Date: Thu Nov 30 07:44:12 2006
New Revision: 480975

URL: http://svn.apache.org/viewvc?view=rev&rev=480975
Log:
JCR-583: TCK: NodeReadMethodsTest.testGetName fails with NPE if 'testroot' has no child node

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java?view=diff&rev=480975&r1=480974&r2=480975
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
Thu Nov 30 07:44:12 2006
@@ -112,10 +112,10 @@
     /**
      * Tests if getName() returns same as last name returned by getPath()
      */
-    public void testGetName() throws RepositoryException {
-        assertEquals("getName() of root must be an empty string",
-                "",
-                session.getRootNode().getName());
+    public void testGetName() throws RepositoryException, NotExecutableException {
+        if (childNode == null) {
+            throw new NotExecutableException("Workspace does not have sufficient content
to run this test.");
+        }
 
         // build name from path
         String path = childNode.getPath();
@@ -1017,4 +1017,4 @@
         }
         return null;
     }
-}
\ No newline at end of file
+}



Mime
View raw message