Revision 8c3fb210
Added by Andreas Kohlbecker almost 7 years ago
src/test/java/eu/etaxonomy/cdm/vaadin/util/converter/TypeDesignationConverterTest.java | ||
---|---|---|
41 | 41 |
@Test |
42 | 42 |
public void test1() throws RegistrationValidationException{ |
43 | 43 |
|
44 |
TaxonName typifiedName = TaxonNameFactory.NewBacterialInstance(Rank.SPECIES()); |
|
45 |
typifiedName.setTitleCache("Prionus coriatius L.", true); |
|
46 |
|
|
44 | 47 |
NameTypeDesignation ntd = NameTypeDesignation.NewInstance(); |
45 | 48 |
TaxonName typeName = TaxonNameFactory.NewBacterialInstance(Rank.SPECIES()); |
46 |
typeName.setTitleCache("Prionus coriatius L.", true);
|
|
49 |
typeName.setTitleCache("Prionus L.", true); |
|
47 | 50 |
ntd.setTypeName(typeName); |
48 | 51 |
Reference citation = ReferenceFactory.newGeneric(); |
49 | 52 |
citation.setTitleCache("Species Platarum", true); |
50 | 53 |
ntd.setCitation(citation); |
51 | 54 |
|
55 |
typifiedName.addTypeDesignation(ntd, false); |
|
56 |
|
|
52 | 57 |
SpecimenTypeDesignation std = SpecimenTypeDesignation.NewInstance(); |
53 | 58 |
DerivedUnit specimen = DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen); |
54 | 59 |
specimen.setTitleCache("OHA", true); |
55 | 60 |
std.setTypeSpecimen(specimen); |
56 | 61 |
std.setTypeStatus(SpecimenTypeDesignationStatus.HOLOTYPE()); |
57 | 62 |
|
63 |
typifiedName.addTypeDesignation(std, false); |
|
64 |
|
|
58 | 65 |
List<TypeDesignationBase> tds = new ArrayList<>(); |
59 | 66 |
tds.add(ntd); |
60 | 67 |
tds.add(std); |
Also available in: Unified diff
fixing test case