Project

General

Profile

« Previous | Next » 

Revision e37987bc

Added by Andreas Kohlbecker over 11 years ago

solving lucene index locked problem for tests

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceSearchTest.java
73 73
 * @created 04.02.2009
74 74
 * @version 1.0
75 75
 */
76
//@Ignore // why ignored?
77 76
public class TaxonServiceSearchTest extends CdmTransactionalIntegrationTest {
78 77

  
79 78
    private static final String ABIES_BALSAMEA_UUID = "f65d47bd-4f49-4ab1-bc4a-bc4551eaa1a8";
......
866 865
     */
867 866
    private void refreshLuceneIndex() {
868 867

  
869
        commitAndStartNewTransaction(null);
868
//        commitAndStartNewTransaction(null);
869
        commit();
870
        endTransaction();
870 871
        indexer.purge(null);
871 872
        indexer.reindex(DefaultProgressMonitor.NewInstance());
872
        commitAndStartNewTransaction(null);
873
        startNewTransaction();
874
//        commitAndStartNewTransaction(null);
873 875
    }
874 876

  
875 877
    @SuppressWarnings("rawtypes")

Also available in: Unified diff