jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r790901 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java
Date Fri, 03 Jul 2009 13:18:31 GMT
Author: reschke
Date: Fri Jul  3 13:18:31 2009
New Revision: 790901

URL: http://svn.apache.org/viewvc?rev=790901&view=rev
Log:
JCR-2076: add a naive test for FTS.getFullTextSearchExpression()

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java?rev=790901&r1=790900&r2=790901&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/qom/QueryObjectModelFactoryTest.java
Fri Jul  3 13:18:31 2009
@@ -377,6 +377,10 @@
         assertEquals("Wrong selector name", SELECTOR_NAME1, ftSearch.getSelectorName());
         assertEquals("Wrong propertyName", propertyName1, ftSearch.getPropertyName());
         // TODO is there some way to check the contents of a StaticOperand?
+        
+        // minimal test of getFullTextSearchExpression()
+        StaticOperand op = ftSearch.getFullTextSearchExpression();
+        assertNotNull(op);
     }
 
     /**
@@ -390,16 +394,6 @@
     }
 
     /**
-     * Test case for {@link QueryObjectModelFactory#fullTextSearch(String, String, String)}
-     */
-    public void testFullTextSearchWithSelector() throws RepositoryException {
-        FullTextSearch ftSearch = qf.fullTextSearch(SELECTOR_NAME1, propertyName1, FULLTEXT_SEARCH_EXPR);
-        assertEquals("Wrong selector name", SELECTOR_NAME1, ftSearch.getSelectorName());
-        assertEquals("Wrong propertyName", propertyName1, ftSearch.getPropertyName());
-        // TODO is there some way to check the contents of a StaticOperand?
-    }
-
-    /**
      * Test case for {@link QueryObjectModelFactory#fullTextSearchScore(String)}
      */
     public void testFullTextSearchScore() throws RepositoryException {



Mime
View raw message