/** * Tests if {@link Query#getStoredQueryPath()} returns the correct path where the query had been * saved. */ public void testGetPersistentQueryPath() throws RepositoryException { String statement = "/" + jcrRoot; Query q = superuser.getWorkspace().getQueryManager().createQuery(statement, Query.XPATH); String path = testRoot + "/" + nodeName1; q.storeAsNode(path); assertEquals( "Query.getPersistentQueryPath() does not return the correct path.", path, q.getStoredQueryPath()); }