Revision da39aca0
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 | 30 |
import eu.etaxonomy.cdm.strategy.merge.MergeException; |
30 | 31 |
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest; |
31 | 32 |
import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy; |
... | ... | |
58 | 59 |
person.setNomenclaturalTitle(nomTitle); |
59 | 60 |
Annotation annotation = Annotation.NewDefaultLanguageInstance("Meine annotation"); |
60 | 61 |
person.setContact(getContact()); |
61 |
BotanicalName name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
62 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
62 | 63 |
name.setCombinationAuthorship(person); |
63 | 64 |
person.addAnnotation(annotation); |
64 | 65 |
|
... | ... | |
101 | 102 |
Annotation annotation = Annotation.NewDefaultLanguageInstance("Meine annotation"); |
102 | 103 |
team.addAnnotation(annotation); |
103 | 104 |
team.setContact(getContact()); |
104 |
BotanicalName name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
105 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
105 | 106 |
name.setCombinationAuthorship(team); |
106 | 107 |
|
107 | 108 |
service.save(team); |
... | ... | |
140 | 141 |
Annotation annotation2 = Annotation.NewDefaultLanguageInstance("Meine annotation2"); |
141 | 142 |
team.addAnnotation(annotation2); |
142 | 143 |
team.setContact(getContact()); |
143 |
BotanicalName name = BotanicalName.NewInstance(Rank.SPECIES());
|
|
144 |
BotanicalName name = TaxonNameBase.NewBotanicalInstance(Rank.SPECIES());
|
|
144 | 145 |
name.setCombinationAuthorship(team); |
145 | 146 |
Person member = Person.NewTitledInstance("Member person"); |
146 | 147 |
member.setNomenclaturalTitle("Memb. pers."); |
Also available in: Unified diff
ref #6365 merge static methods from BotanicaName to TaxonNameBase