[ 
https://issues.apache.org/jira/browse/DERBY-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-590:
--------------------------------

    Attachment: derby-590-08-aa-omitLuceneFlag.diff

Attaching derby-590-08-aa-omitLuceneFlag.diff. This patch adds a flag to cause 
the tests to omit the Lucene plugin tests and at the same time demand that the 
Lucene jars not be present on the classpath.

This patch introduces a new Derby testing flag: derby.tests.omitLucene. When 
this flag is set to true, the Lucene tests are NOT run and the LuceneSuite 
asserts that the Lucene jar files must NOT be on the classpath.

I have run the Lucene suite in the following configurations with the following 
(expected) results:

o Default - The flag is not set and the Lucene jars ARE on the classpath. The 
LuceneSuite runs cleanly.

o Missing - The flag is not set and the Lucene jars are NOT on the classpath. 
The LuceneSuite raises many ClassNotFoundExceptions.

o Present - The flag is set and the Lucene jars ARE on the classpath. The 
LuceneSuite raises an error, complaining that it can see the jar files.

o Omitted - The flag is set and the Lucene jars are NOT on the classpath. The 
LuceneSuite runs cleanly but with 0 tests.

I will run the full test suite in the Default and Omitted configurations.


Touches the following files:

M       
java/testing/org/apache/derbyTesting/functionTests/tests/lang/LuceneSuite.java
M       java/testing/org/apache/derbyTesting/junit/JDBC.java
M       java/testing/org/apache/derbyTesting/junit/TestConfiguration.java


> How to integrate Derby with Lucene API?
> ---------------------------------------
>
>                 Key: DERBY-590
>                 URL: https://issues.apache.org/jira/browse/DERBY-590
>             Project: Derby
>          Issue Type: Improvement
>          Components: Documentation, SQL
>            Reporter: Abhijeet Mahesh
>              Labels: derby_triage10_11
>         Attachments: derby-590-01-ag-publicAccessToLuceneRoutines.diff, 
> derby-590-01-ah-publicAccessToLuceneRoutines.diff, 
> derby-590-01-am-publicAccessToLuceneRoutines.diff, 
> derby-590-02-aa-cleanupFindbugsErrors.diff, 
> derby-590-03-aa-removeTestingDiagnostic.diff, 
> derby-590-04-aa-removeIDFromListIndexes.diff, 
> derby-590-05-aa-accessDeclaredMembers.diff, 
> derby-590-06-aa-suppressAccessChecks.diff, 
> derby-590-07-aa-accessClassInPackage.sun.misc.diff, 
> derby-590-08-aa-omitLuceneFlag.diff, lucene_demo.diff, lucene_demo_2.diff
>
>
> In order to use derby with lucene API what should be the steps to be taken? 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to