Revision fe34a9eb
Added by Andreas Müller about 7 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/StatisticsServiceImplTest2.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.model.description.TextData; |
28 | 28 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
29 | 29 |
import eu.etaxonomy.cdm.model.name.Rank; |
30 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
30 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
|
|
31 | 31 |
import eu.etaxonomy.cdm.model.reference.Reference; |
32 | 32 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
33 | 33 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
... | ... | |
240 | 240 |
+ RandomStringUtils.randomAlphabetic(10); |
241 | 241 |
|
242 | 242 |
// create a name for the taxon |
243 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
243 |
BotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
244 | 244 |
name.setNameCache(randomName, true); |
245 | 245 |
|
246 | 246 |
// create nomenclatural reference for taxon name (if left) |
... | ... | |
351 | 351 |
randomName = RandomStringUtils.randomAlphabetic(5) + " " |
352 | 352 |
+ RandomStringUtils.randomAlphabetic(10); |
353 | 353 |
// name for synonym |
354 |
name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
354 |
name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
355 | 355 |
name.setNameCache(randomName, true); |
356 | 356 |
|
357 | 357 |
// create nomenclatural reference for synonym name (if left) |
Also available in: Unified diff
ref #6365 use TaxonNameFactory for botanical names