Revision c70266b8
Added by Andreas Müller about 6 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java | ||
---|---|---|
2285 | 2285 |
//or even better IV. 111 (Heft 36), but this is currently not implemented |
2286 | 2286 |
assertEquals("111 (Heft 36)", ref.getInReference().getVolume()); |
2287 | 2287 |
|
2288 |
nameStr = "Bufonia kotschyana subsp. densa Chrtek & Křísa in Acta Univ.Carol., Biol. 43(2): 105. 1999"; |
|
2289 |
name = parser.parseReferencedName(nameStr); |
|
2290 |
Assert.assertFalse("Name should be parsable", name.isProtectedTitleCache()); |
|
2291 |
String author = name.getAuthorshipCache(); |
|
2292 |
assertEquals("Chrtek & Křísa", author); |
|
2293 |
ref = (Reference)name.getNomenclaturalReference(); |
|
2294 |
Assert.assertNotNull("Nomenclatural reference should be an article and therefore have an in reference", ref.getInReference()); |
|
2295 |
Assert.assertEquals(ReferenceType.Journal, ref.getInReference().getType()); |
|
2288 | 2296 |
|
2289 | 2297 |
} |
2290 | 2298 |
|
Also available in: Unified diff
ref #7304 reduce author part in booksections to 2 words in name parser