Revision a32f4c74
Added by Andreas Müller over 2 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/cache/name/TaxonNameDefaultCacheStrategyTest.java | ||
---|---|---|
89 | 89 |
subSpeciesName = TaxonNameFactory.PARSED_BOTANICAL(subSpeciesNameString); |
90 | 90 |
|
91 | 91 |
author = Person.NewInstance(); |
92 |
author.setNomenclaturalTitle(authorString);
|
|
92 |
author.setNomenclaturalTitleCache(authorString, true);
|
|
93 | 93 |
exAuthor = Person.NewInstance(); |
94 |
exAuthor.setNomenclaturalTitle(exAuthorString);
|
|
94 |
exAuthor.setNomenclaturalTitleCache(exAuthorString, true);
|
|
95 | 95 |
basAuthor = Person.NewInstance(); |
96 |
basAuthor.setNomenclaturalTitle(basAuthorString);
|
|
96 |
basAuthor.setNomenclaturalTitleCache(basAuthorString, true);
|
|
97 | 97 |
exBasAuthor = Person.NewInstance(); |
98 |
exBasAuthor.setNomenclaturalTitle(exBasAuthorString);
|
|
98 |
exBasAuthor.setNomenclaturalTitleCache(exBasAuthorString, true);
|
|
99 | 99 |
|
100 | 100 |
citationRef = ReferenceFactory.newGeneric(); |
101 | 101 |
citationRef.setTitleCache(referenceTitle, true); |
... | ... | |
412 | 412 |
Assert.assertEquals("Expected full title cache has error", "Abies alba (Basio, A.) L., GenericRef", subSpeciesName.getFullTitleCache()); |
413 | 413 |
|
414 | 414 |
//author change |
415 |
author.setNomenclaturalTitle("M.");
|
|
415 |
author.setNomenclaturalTitleCache("M.", true);
|
|
416 | 416 |
Assert.assertEquals("Expected full title cache has error", "(Basio, A.) M.", subSpeciesName.getAuthorshipCache()); |
417 | 417 |
Assert.assertEquals("Expected full title cache has error", "Abies alba (Basio, A.) M., GenericRef", subSpeciesName.getFullTitleCache()); |
418 | 418 |
Assert.assertEquals("Expected full title cache has error", "Abies alba (Basio, A.) M.", subSpeciesName.getTitleCache()); |
... | ... | |
460 | 460 |
subSpeciesName.setAuthorshipCache("Ciard."); |
461 | 461 |
Assert.assertEquals("Expected full title cache has error", "P. alba subsp. beta Ciard., GenericRef", subSpeciesName.getFullTitleCache()); |
462 | 462 |
|
463 |
author.setNomenclaturalTitle("X.");
|
|
463 |
author.setNomenclaturalTitleCache("X.", true);
|
|
464 | 464 |
subSpeciesName.setProtectedAuthorshipCache(false); |
465 | 465 |
Assert.assertEquals("Expected full title cache has error", "P. alba subsp. beta (Basio, A.) X., GenericRef", subSpeciesName.getFullTitleCache()); |
466 | 466 |
|
Also available in: Unified diff
ref #9729, #9728, #9664 remove calls to deprecated method setNomenclaturalTitle