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

index 8de06027570b244f6c071819c41c0bbc926cab7c..8a437f25a6453c700a7cba979b338fd27772c4ab 100644 (file)
@@ -41,12 +41,11 @@ public class TaxonGenerator {
        private Random rnd = new Random();
 
        public static Taxon getTestTaxon(){
-               ReferenceFactory refFactory = ReferenceFactory.newInstance();
                Person deCandolle = Person.NewInstance();
                deCandolle.setTitleCache("DC.", true);
-               Reference sec = refFactory.newDatabase();
+               Reference<?> sec = ReferenceFactory.newDatabase();
                sec.setTitleCache("Flora lunaea", true);
-               Reference citationRef = refFactory.newBook();
+               Reference<?> citationRef = ReferenceFactory.newBook();
                citationRef.setTitleCache("Sp. lunarum", true);
                
         //genus taxon with Name, combinationAuthor,