incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1522945 - /sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Date Fri, 13 Sep 2013 14:15:55 GMT
Author: bdelacretaz
Date: Fri Sep 13 14:15:55 2013
New Revision: 1522945

URL: http://svn.apache.org/r1522945
Log:
SLING-2788 - nitpicks

Modified:
    sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java

Modified: sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java?rev=1522945&r1=1522944&r2=1522945&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
(original)
+++ sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Fri Sep 13 14:15:55 2013
@@ -67,6 +67,9 @@ public abstract class SlingRepositoryITB
         return it;
     }
     
+    /** Verify that admin can create and retrieve a node of the specified type.
+     * @return the path of the test node that was created.
+     */
     private String assertCreateRetrieveNode(String nodeType) throws RepositoryException {
         Session s = repository.loginAdministrative(null);
         try {
@@ -187,7 +190,10 @@ public abstract class SlingRepositoryITB
             s.save();
             
             final String stmt = "SELECT * FROM nt:base WHERE " + propName + " IS NOT NULL";
+            
+            @SuppressWarnings("deprecation")
             final Query q = s.getWorkspace().getQueryManager().createQuery(stmt, Query.SQL);
+            
             final NodeIterator it = q.execute().getNodes();
             int count = 0;
             while(it.hasNext()) {



Mime
View raw message