Project

General

Profile

Revision 09f3451c

ID09f3451cc4c52c3d0d95f6d86542fd420b92dece
Parent 18bed38f
Child 8b9bedd7

Added by Andreas Müller over 3 years ago

Unignore tests

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceSearchTest.java
269 269
    @SuppressWarnings("rawtypes")
270 270
    @Test
271 271
    @DataSet(loadStrategy=CleanSweepInsertLoadStrategy.class)
272
    @Ignore
273 272
    public final void testFullText_Paging() throws IOException, LuceneParseException {
274 273

  
275 274
        Reference sec = ReferenceFactory.newDatabase();
......
446 445
    @SuppressWarnings("rawtypes")
447 446
    @Test
448 447
    @DataSet
449
    @Ignore
450 448
    public final void testFindByDescriptionElementFullText_TextData() throws IOException, LuceneParseException {
451 449

  
452 450
        refreshLuceneIndex();
......
850 848
        Classification alternateClassification = classificationService.find(CLASSIFICATION_ALT_UUID);
851 849
        Synonym abiesSubalpina = (Synonym)taxonService.find(ABIES_SUBALPINA_UUID);
852 850

  
853
        Pager<SearchResult<TaxonBase>> pager = taxonService.findTaxaAndNamesByFullText(
851
        Pager<SearchResult<TaxonBase>> pager;
852
         pager = taxonService.findTaxaAndNamesByFullText(
854 853
                EnumSet.of(TaxaAndNamesSearchMode.doTaxa, TaxaAndNamesSearchMode.doSynonyms, TaxaAndNamesSearchMode.includeUnpublished),
855 854
                "Abies", null, null, null, null, true, null, null, null, null);
856 855
//        logPagerRecords(pager, Level.DEBUG);
......
883 882
        Assert.assertEquals("Expecting 6 entities. Synonym and accepted should not be found, though synonym is published",
884 883
                6, pager.getCount().intValue());
885 884

  
886

  
887 885
        EnumSet<TaxaAndNamesSearchMode> searchMode = EnumSet.allOf(TaxaAndNamesSearchMode.class);
888 886
        pager = taxonService.findTaxaAndNamesByFullText(
889 887
                searchMode, "Abies", null, null, null, null, true, null, null, null, null);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)