You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by mr...@apache.org on 2006/11/30 16:44:12 UTC
svn commit: r480975 -
/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
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
+}