Revision da39aca0
Added by Andreas Müller about 7 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/statistics/StatisticsDaoHibernateImplTest.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.model.description.TextData; |
31 | 31 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
32 | 32 |
import eu.etaxonomy.cdm.model.name.Rank; |
33 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
|
33 | 34 |
import eu.etaxonomy.cdm.model.reference.Reference; |
34 | 35 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
35 | 36 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
... | ... | |
246 | 247 |
+ RandomStringUtils.randomAlphabetic(10); |
247 | 248 |
|
248 | 249 |
// create a name for the taxon |
249 |
BotanicalName name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
250 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
250 | 251 |
name.setNameCache(randomName, true); |
251 | 252 |
|
252 | 253 |
// create nomenclatural reference for taxon name (if left) |
... | ... | |
339 | 340 |
randomName = RandomStringUtils.randomAlphabetic(5) + " " |
340 | 341 |
+ RandomStringUtils.randomAlphabetic(10); |
341 | 342 |
// name for synonym |
342 |
name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
343 |
name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
343 | 344 |
name.setNameCache(randomName, true); |
344 | 345 |
|
345 | 346 |
// create nomenclatural reference for synonym name (if left) |
Also available in: Unified diff
ref #6365 merge static methods from BotanicaName to TaxonNameBase