Revision 45528416
Added by Katja Luther almost 15 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/taxon/TaxonTest.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
30 | 30 |
import eu.etaxonomy.cdm.model.name.Rank; |
31 | 31 |
import eu.etaxonomy.cdm.model.name.ZoologicalName; |
32 |
import eu.etaxonomy.cdm.model.reference.Book; |
|
32 |
//import eu.etaxonomy.cdm.model.reference.Book;
|
|
33 | 33 |
import eu.etaxonomy.cdm.model.reference.ReferenceBase; |
34 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
|
34 | 35 |
import eu.etaxonomy.cdm.test.unit.EntityTestBase; |
35 | 36 |
|
36 | 37 |
public class TaxonTest extends EntityTestBase { |
... | ... | |
60 | 61 |
|
61 | 62 |
@Before |
62 | 63 |
public void setUp() throws Exception { |
64 |
ReferenceFactory refFactory = ReferenceFactory.newInstance(); |
|
63 | 65 |
Person linne =new Person("Carl", "Linné", "L."); |
64 |
sec= Book.NewInstance();
|
|
66 |
sec= refFactory.newBook();
|
|
65 | 67 |
sec.setAuthorTeam(linne); |
66 | 68 |
sec.setTitleCache("Schönes saftiges Allgäu"); |
67 |
misSec = Book.NewInstance();
|
|
69 |
misSec = refFactory.newBook();
|
|
68 | 70 |
misSec.setTitleCache("Stupid book"); |
69 | 71 |
|
70 | 72 |
name1 = ZoologicalName.NewInstance(Rank.SPECIES(),"Panthera",null,"onca",null,linne,null,"p.1467", null); |
Also available in: Unified diff
merging branches/cdmlib/2.2 [7345:7377] to trunk
see also:
https://dev.e-taxonomy.eu/trac/changeset?new=branches%2Fcdmlib%2F2.2%407377&old=branches%2Fcdmlib%2F2.2%407345