RM: more capabilities tests and fixes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2009-08-25 08:20:51 +00:00
parent 598ecfb27b
commit f8dbb57c5b

View File

@@ -651,7 +651,24 @@ public class ADMLuceneTest extends TestCase
} }
} }
public void testQuoting() throws Exception
{
testTX.commit();
testTX = transactionService.getUserTransaction();
testTX.begin();
SearchParameters sp = new SearchParameters();
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery("TEXT:\"te\\\"thing\\\"st\"");
sp.addStore(rootNodeRef.getStoreRef());
sp.excludeDataInTheCurrentTransaction(true);
ResultSet results = serviceRegistry.getSearchService().query(sp);
results.close();
}
public void testPublicServiceSearchServicePaging() throws Exception public void testPublicServiceSearchServicePaging() throws Exception
{ {
testTX.commit(); testTX.commit();