Project

General

Profile

Revision 4e6f5b53

ID4e6f5b53f4787d8017145aad13fc61ded752dba2
Parent 177a283a
Child a6f0466b

Added by Andreas Kohlbecker over 3 years ago

ref #6296 confirming that modified expectations are correct, removing FIXMEs

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/TaxonServiceSearchTaxaAndNamesTest.java
167 167

  
168 168
        setTaxaAndNamesModes(conf, true, true, false, true, true);
169 169
        pager = taxonService.findTaxaAndNames(conf);
170
        logSearchResults(pager, Level.DEBUG);
170 171
        assertEquals(10, pager.getRecords().size());
171 172

  
172

  
173
     // FIXME org.hibernate.QueryParameterException: could not locate named parameter [taxa]
174 173
        setTaxaAndNamesModes(conf, false, true, false, true, true);
175 174
        pager = taxonService.findTaxaAndNames(conf);
176
        // there are one synonym, two names without taxa and a misapplied name
177
        assertEquals(4, pager.getRecords().size());
175
        assertEquals("one synonym, two names without taxa and a misapplied name", 4, pager.getRecords().size());
178 176

  
179 177
        setTaxaAndNamesModes(conf, true, false, false, true, true);
180 178
        pager = taxonService.findTaxaAndNames(conf);
......
191 189
        // logSearchResults(pager, Level.DEBUG);
192 190
        assertEquals(10, pager.getRecords().size());
193 191

  
194
        // FIXME the Synonym Abies subalpina missing in result set
195 192
        setTaxaAndNamesModes(conf, false, true, true, false, true);
196 193
        pager = taxonService.findTaxaAndNames(conf);
197 194
        logSearchResults(pager, Level.DEBUG);
......
242 239
        setTaxaAndNamesModes(conf, false, true, true, true, false);
243 240
        pager = taxonService.findTaxaAndNames(conf);
244 241
        logSearchResults(pager, Level.DEBUG);
245
        //There is one synonym and a misapplied name
246
        assertEquals(2, pager.getRecords().size());
242
        assertEquals("one synonym and a misapplied name", 2, pager.getRecords().size());
247 243

  
248 244
        setTaxaAndNamesModes(conf, true, false, true, true, false);
249 245
        pager = taxonService.findTaxaAndNames(conf);
......
262 258
        logSearchResults(pager, Level.DEBUG);
263 259
        assertEquals(8, pager.getRecords().size());
264 260

  
265
        // FIXME org.hibernate.QueryParameterException: could not locate named parameter [taxa]
266 261
        setTaxaAndNamesModes(conf, false, true, false, true, false);
267 262
        pager = taxonService.findTaxaAndNames(conf);
268 263
        logSearchResults(pager, Level.DEBUG);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)