Revision da39aca0
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 | 31 |
import eu.etaxonomy.cdm.model.reference.Reference; |
31 | 32 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
32 | 33 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
... | ... | |
239 | 240 |
+ RandomStringUtils.randomAlphabetic(10); |
240 | 241 |
|
241 | 242 |
// create a name for the taxon |
242 |
BotanicalName name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
243 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
243 | 244 |
name.setNameCache(randomName, true); |
244 | 245 |
|
245 | 246 |
// create nomenclatural reference for taxon name (if left) |
... | ... | |
350 | 351 |
randomName = RandomStringUtils.randomAlphabetic(5) + " " |
351 | 352 |
+ RandomStringUtils.randomAlphabetic(10); |
352 | 353 |
// name for synonym |
353 |
name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
354 |
name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
354 | 355 |
name.setNameCache(randomName, true); |
355 | 356 |
|
356 | 357 |
// create nomenclatural reference for synonym name (if left) |
Also available in: Unified diff
ref #6365 merge static methods from BotanicaName to TaxonNameBase