@@ -713,7 +713,8 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
713
713
then :
714
714
outputSpeciesId != null
715
715
result == [name : " Acacia glauca Willd. (Acacia glauca)" , scientificName : " Acacia glauca Willd." , guid : " A_GUID" , commonName : " Acacia glauca" , taxonRank : " Species" ]
716
- 2 * speciesReMatchService. searchByName(_) >> null
716
+ 1 * speciesReMatchService. searchByName(_) >> null
717
+ 1 * speciesReMatchService. searchByName(_, false , true ) >> null
717
718
718
719
when : // no scientific name
719
720
result = service. transformSpeciesName(" Frogs [Class] (scientific: )" )
@@ -722,7 +723,8 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
722
723
then :
723
724
outputSpeciesId != null
724
725
result == [name : " Frogs" , scientificName : " " , guid : " A_GUID" , commonName : " Frogs" , taxonRank : " Class" ]
725
- 2 * speciesReMatchService. searchByName(_) >> null
726
+ 1 * speciesReMatchService. searchByName(_) >> null
727
+ 1 * speciesReMatchService. searchByName(_, false , true ) >> null
726
728
}
727
729
728
730
void " buildTreeFromParentChildRelationships should build tree correctly" () {
@@ -1431,7 +1433,7 @@ class ParatooServiceSpec extends MongoSpec implements ServiceUnitTest<ParatooSer
1431
1433
result. lut. remove(' outputSpeciesId' )
1432
1434
then :
1433
1435
1 * speciesReMatchService. searchByName(" Felis catus" ) >> null
1434
- 1 * speciesReMatchService. searchByName(" Cats" ) >> [
1436
+ 1 * speciesReMatchService. searchByName(" Cats" , false , true ) >> [
1435
1437
commonName : " Cat" ,
1436
1438
scientificName : " Felis catus" ,
1437
1439
guid : " TAXON_ID" ,
0 commit comments