new unit test for #1556
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 27 Sep 2010 11:35:25 +0000 (11:35 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 27 Sep 2010 11:35:25 +0000 (11:35 +0000)
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java

index de27faf293b557cf71519e702c54824156845b0b..82e0f1208e63b78317376053f0a6aa0f397c372e 100644 (file)
@@ -800,6 +800,14 @@ public class NonViralNameParserImplTest {
                String unparsable2 = "Hieracium pxxx Dahlst., Kongl. Svenska Vetensk. Acad. Handl. ser. 2, 26(3): 255. 1894";\r
                String unparsable2A = "Hieracium pxxx Dahlst., Kongl Svenska Vetensk Acad Handl, 26: 255. 1894.";\r
                nvn = this.parser.parseReferencedName(unparsable2, NomenclaturalCode.ICBN, null);\r
+               Assert.assertEquals("Titlecache", "Hieracium pxxx Dahlst.", nvn.getTitleCache());\r
+               Assert.assertEquals("If this line reached everything should be ok", "Hieracium", nvn.getGenusOrUninomial());\r
+               \r
+               \r
+               String again = "Adiantum emarginatum Bory ex. Willd., Species Plantarum, ed. 4,5,1: 449,450. 1810";\r
+               nvn = this.parser.parseReferencedName(again, NomenclaturalCode.ICBN, null);\r
+               Assert.assertEquals("Titlecache", "Adiantum emarginatum Bory ex Willd.", nvn.getTitleCache());\r
+               Assert.assertEquals("If this line reached everything should be ok", "Adiantum", nvn.getGenusOrUninomial());\r
                \r
        }\r
 \r