Revision fe34a9eb
Added by Andreas Müller about 7 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/StatisticsServiceImplTest.java | ||
---|---|---|
37 | 37 |
import eu.etaxonomy.cdm.model.description.TextData; |
38 | 38 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
39 | 39 |
import eu.etaxonomy.cdm.model.name.Rank; |
40 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
40 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
|
|
41 | 41 |
import eu.etaxonomy.cdm.model.reference.Reference; |
42 | 42 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
43 | 43 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
... | ... | |
282 | 282 |
|
283 | 283 |
MyCounter taxonContextCounter = new MyCounter(); |
284 | 284 |
// create a name for the taxon |
285 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
285 |
BotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
286 | 286 |
name.setNameCache(randomName, true); |
287 | 287 |
|
288 | 288 |
// create nomenclatural reference for taxon name (if left) |
... | ... | |
390 | 390 |
randomName = RandomStringUtils.randomAlphabetic(5) + " " |
391 | 391 |
+ RandomStringUtils.randomAlphabetic(10); |
392 | 392 |
// name for synonym |
393 |
name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
393 |
name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
394 | 394 |
name.setNameCache(randomName, true); |
395 | 395 |
|
396 | 396 |
// create nomenclatural reference for synonym name (if left) |
Also available in: Unified diff
ref #6365 use TaxonNameFactory for botanical names