@@ -37,6 +37,7 @@ class SpeciesListServiceSpec extends Specification implements ServiceUnitTest<Sp
3737 result. size() == 1
3838 result[0 ]. name == " Testus species"
3939 result[0 ]. scientificName == " Testus species"
40+ result[0 ]. matchedName == " Testus species"
4041 result[0 ]. rawScientificName == " Testus species"
4142 result[0 ]. commonName == " Test Species"
4243 result[0 ]. lsid == " testLsid"
@@ -83,6 +84,7 @@ class SpeciesListServiceSpec extends Specification implements ServiceUnitTest<Sp
8384 result. size() == 1
8485 result[0 ]. name == " Testus species"
8586 result[0 ]. scientificName == " Testus species"
87+ result[0 ]. matchedName == " Testus species"
8688 result[0 ]. rawScientificName == " Testus species"
8789 result[0 ]. commonName == " Test Species"
8890 result[0 ]. lsid == " testLsid"
@@ -483,14 +485,14 @@ class SpeciesListServiceSpec extends Specification implements ServiceUnitTest<Sp
483485 resp : [
484486 [
485487 id : 123 ,
486- scientificName : " Eucalyptus globulus" ,
488+ matchedName : " Eucalyptus globulus" ,
487489 rawScientificName : " Eucalyptus globulus" ,
488490 commonName : " Tasmanian Blue Gum" ,
489491 kvpValues : [[kingdom : " Plantae" ]]
490492 ],
491493 [
492494 id : 124 ,
493- scientificName : " Eucalyptus camaldulensis" ,
495+ matchedName : " Eucalyptus camaldulensis" ,
494496 rawScientificName : " Eucalyptus camaldulensis" ,
495497 commonName : " River Red Gum" ,
496498 kvpValues : [[kingdom : " Plantae" ]]
@@ -506,8 +508,9 @@ class SpeciesListServiceSpec extends Specification implements ServiceUnitTest<Sp
506508 then :
507509 result. size() == 2
508510 result[0 ]. scientificName == " Eucalyptus globulus"
511+ result[0 ]. matchedName == " Eucalyptus globulus"
509512 result[0 ]. rawScientificName == " Eucalyptus globulus"
510- result[1 ]. scientificName == " Eucalyptus camaldulensis"
513+ result[1 ]. matchedName == " Eucalyptus camaldulensis"
511514 result[1 ]. rawScientificName == " Eucalyptus camaldulensis"
512515 }
513516
@@ -600,12 +603,14 @@ class SpeciesListServiceSpec extends Specification implements ServiceUnitTest<Sp
600603 then :
601604 result. size() == 2
602605 result[0 ]. scientificName == " Eucalyptus globulus"
606+ result[0 ]. matchedName == " Eucalyptus globulus"
603607 result[0 ]. rawScientificName == " Eucalyptus globilus"
604608 result[0 ]. commonName == " Tasmanian Blue Gum"
605609 result[0 ]. lsid == " testLsid1"
606610 result[0 ]. kvpValues == [[kingdom : " Plantae" ]]
607611 result[1 ]. rawScientificName == " Eucalyptus cameldulensis"
608612 result[1 ]. scientificName == " Eucalyptus camaldulensis"
613+ result[1 ]. matchedName == " Eucalyptus camaldulensis"
609614 result[1 ]. commonName == " River Red Gum"
610615 result[1 ]. kvpValues == [[kingdom : " Plantae" ]]
611616 result[1 ]. lsid == " testLsid2"
0 commit comments