Revision fe34a9eb
Added by Andreas Müller about 7 years ago
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/AgentServiceImplTest.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.model.location.Point; |
27 | 27 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
28 | 28 |
import eu.etaxonomy.cdm.model.name.Rank; |
29 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
29 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
|
|
30 | 30 |
import eu.etaxonomy.cdm.strategy.merge.MergeException; |
31 | 31 |
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest; |
32 | 32 |
import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy; |
... | ... | |
59 | 59 |
person.setNomenclaturalTitle(nomTitle); |
60 | 60 |
Annotation annotation = Annotation.NewDefaultLanguageInstance("Meine annotation"); |
61 | 61 |
person.setContact(getContact()); |
62 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
62 |
BotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
63 | 63 |
name.setCombinationAuthorship(person); |
64 | 64 |
person.addAnnotation(annotation); |
65 | 65 |
|
... | ... | |
102 | 102 |
Annotation annotation = Annotation.NewDefaultLanguageInstance("Meine annotation"); |
103 | 103 |
team.addAnnotation(annotation); |
104 | 104 |
team.setContact(getContact()); |
105 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
105 |
BotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
106 | 106 |
name.setCombinationAuthorship(team); |
107 | 107 |
|
108 | 108 |
service.save(team); |
... | ... | |
141 | 141 |
Annotation annotation2 = Annotation.NewDefaultLanguageInstance("Meine annotation2"); |
142 | 142 |
team.addAnnotation(annotation2); |
143 | 143 |
team.setContact(getContact()); |
144 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
144 |
BotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES());
|
|
145 | 145 |
name.setCombinationAuthorship(team); |
146 | 146 |
Person member = Person.NewTitledInstance("Member person"); |
147 | 147 |
member.setNomenclaturalTitle("Memb. pers."); |
Also available in: Unified diff
ref #6365 use TaxonNameFactory for botanical names