Revision 4dbcb616
Added by Andreas Müller over 3 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/datagenerator/TaxonGenerator.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.datagenerator; |
11 | 10 |
|
12 | 11 |
import eu.etaxonomy.cdm.model.agent.Person; |
... | ... | |
29 | 28 |
* This class offers functionality to create test taxa and descriptions. |
30 | 29 |
* |
31 | 30 |
* @author m.doering |
32 |
* |
|
33 | 31 |
*/ |
34 | 32 |
public class TaxonGenerator { |
33 |
|
|
35 | 34 |
private static String[] genera = {"Carex", "Abies", "Belladonna", "Dracula", "Maria", "Calendula", "Polygala", "Vincia"}; |
36 | 35 |
private static String[] epitheta = {"vulgaris", "magdalena", "officinalis", "alba", "negra", "communa", "alpina", "rotundifolia", "greutheriana", "helventica", "allemania", "franca"}; |
37 | 36 |
private static String[] ranks = {"subsp", "var", "f"}; |
... | ... | |
77 | 76 |
Synonym homoSynonym = Synonym.NewInstance(botSpecies4, sec); |
78 | 77 |
childTaxon.addSynonym(homoSynonym, SynonymType.HOMOTYPIC_SYNONYM_OF()); |
79 | 78 |
|
80 |
|
|
81 | 79 |
//2nd child species taxon that is the child of genus taxon |
82 | 80 |
IBotanicalName botSpecies2= TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES()); |
83 | 81 |
botSpecies2.setTitleCache("Hieracium wolffii Zahn", true); |
Also available in: Unified diff
cleanup and use TermTestBase for model tests