jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r293273 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java
Date Mon, 03 Oct 2005 08:01:20 GMT
Author: mreutegg
Date: Mon Oct  3 01:01:17 2005
New Revision: 293273

URL: http://svn.apache.org/viewcvs?rev=293273&view=rev
Log:
JCR-156: Review test cases and cross check with 1.0 specification
- SaveTest.testSave() should also allow nodes of a subtype of nt:query

Modified:
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java?rev=293273&r1=293272&r2=293273&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/query/SaveTest.java
Mon Oct  3 01:01:17 2005
@@ -58,7 +58,7 @@
         assertTrue("Node has not been stored", testRootNode.hasNode(nodeName1));
 
         Node queryNode = testRootNode.getNode(nodeName1);
-        assertEquals("Query node is not of type nt:query", ntQuery, queryNode.getPrimaryNodeType().getName());
+        assertTrue("Query node is not of type nt:query", queryNode.isNodeType(ntQuery));
 
         Query query2 = superuser.getWorkspace().getQueryManager().getQuery(queryNode);
         assertEquals("Persisted query does not match initial query.", query.getStatement(),
query2.getStatement());



Mime
View raw message