update ReferenceFactory method
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 23 Apr 2013 14:05:26 +0000 (14:05 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 23 Apr 2013 14:05:26 +0000 (14:05 +0000)
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/BotanicalNameTest.java

index ecc643f65213bb34db6bd625ae1f36bf742a29fd..58f060525c68143a063bc3efc83aa27f27345df7 100644 (file)
@@ -78,14 +78,13 @@ public class BotanicalNameTest extends EntityTestBase{
 \r
        @Test\r
        public final void testBotanicalNameRankStringStringStringAgentINomenclaturalReferenceString() {\r
-               ReferenceFactory refFactory = ReferenceFactory.newInstance();\r
                Rank rank = Rank.SPECIALFORM();\r
                String genusOrUninomial = "Genus";\r
                String infraGenericEpithet = "infraGenericEpi";\r
                String specificEpithet = "specEpi";\r
                String infraSpecificEpithet = "infraSpecificEpi";\r
-               TeamOrPersonBase combinationAuthorTeam = Team.NewInstance();\r
-               INomenclaturalReference nomenclaturalReference = refFactory.newArticle();\r
+               TeamOrPersonBase<?> combinationAuthorTeam = Team.NewInstance();\r
+               INomenclaturalReference nomenclaturalReference = ReferenceFactory.newArticle();\r
                String nomenclMicroRef = "microRef";\r
                HomotypicalGroup homotypicalGroup = new HomotypicalGroup();\r
                BotanicalName fullName = new BotanicalName(rank, genusOrUninomial, infraGenericEpithet, specificEpithet, infraSpecificEpithet, combinationAuthorTeam, nomenclaturalReference, nomenclMicroRef, homotypicalGroup);\r