Revision 5316cc5a
Added by Andreas Müller over 12 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/excel/taxa/NormalExplicitImportTest.java | ||
---|---|---|
50 | 50 |
import eu.etaxonomy.cdm.model.description.TextData; |
51 | 51 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
52 | 52 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
53 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
|
53 | 54 |
import eu.etaxonomy.cdm.model.reference.Reference; |
54 | 55 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
55 | 56 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
... | ... | |
210 | 211 |
assertEquals("Source author should be 'Meyer et. al.'", "Meyer et. al.",ref.getAuthorTeam().getTitleCache()); |
211 | 212 |
assertEquals("Publication title should be 'My first book'", "My first book", ref.getTitle()); |
212 | 213 |
assertEquals("Publication year should be '1987'", "1987", ref.getYear()); |
213 |
|
|
214 |
TaxonNameBase nameUsedInSource = source.getNameUsedInSource(); |
|
215 |
assertNotNull("Name used in source should not be null", nameUsedInSource); |
|
216 |
assertEquals("Name used in source title should be ", "Abies", nameUsedInSource.getTitleCache()); |
|
217 |
|
|
218 |
|
|
214 | 219 |
//synonym |
215 | 220 |
expectedText = "A synonym description"; |
216 | 221 |
textData = getTextElement(description, expectedText); |
... | ... | |
230 | 235 |
assertEquals("Source author should be 'Theys, A.'", "Theys, A.",ref.getAuthorTeam().getTitleCache()); |
231 | 236 |
assertEquals("Publication title should be 'The ultimate book'", "The ultimate book", ref.getTitle()); |
232 | 237 |
assertEquals("Publication year should be '2011'", "2011", ref.getYear()); |
238 |
nameUsedInSource = source.getNameUsedInSource(); |
|
239 |
assertNotNull("Name used in source should not be null", nameUsedInSource); |
|
240 |
assertEquals("Name used in source title should be Pinus", "Pinus", nameUsedInSource.getTitleCache()); |
|
233 | 241 |
|
234 | 242 |
} |
235 | 243 |
|
Also available in: Unified diff
nameUsedInSource added to NEEI