Revision f88c28ee
Added by Andreas Kohlbecker over 5 years ago
src/test/java/eu/etaxonomy/cdm/vaadin/util/converter/TypeDesignationSetManagerIT.java | ||
---|---|---|
111 | 111 |
std_IT_3.setId(4); |
112 | 112 |
DerivedUnit specimen_IT_3 = DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen); |
113 | 113 |
specimen_IT_3.setTitleCache("M", true); |
114 |
createDerivationEvent(fu_1, specimen_IT_3);
|
|
114 |
createDerivationEvent(fu_2, specimen_IT_3);
|
|
115 | 115 |
std_IT_3.setTypeSpecimen(specimen_IT_3); |
116 | 116 |
std_IT_3.setTypeStatus(SpecimenTypeDesignationStatus.ISOTYPE()); |
117 | 117 |
|
... | ... | |
175 | 175 |
Logger.getLogger(this.getClass()).debug(result); |
176 | 176 |
assertNotNull(result); |
177 | 177 |
assertEquals( |
178 |
"Prionus coriatius L. Type: Testland, near Bughausen, A.Kohlbecker 81989, 2017 Holotype, OHA; Isotypes: BER, KEW; Type: Isotype, M; NameType: Prionus L. Species Plantarum"
|
|
178 |
"Prionus coriatius L. Type: Dreamland, near Kissingen, A.Kohlbecker 66211, 2017 Isotype, M; Type: Testland, near Bughausen, A.Kohlbecker 81989, 2017 Holotype, OHA; Isotypes: BER, KEW; NameType: Prionus L. Species Plantarum"
|
|
179 | 179 |
, result |
180 | 180 |
); |
181 | 181 |
|
182 | 182 |
LinkedHashMap<TypedEntityReference, TypeDesignationWorkingSet> orderedTypeDesignations = |
183 | 183 |
typeDesignationManager.getOrderdTypeDesignationWorkingSets(); |
184 |
Map<TypeDesignationStatusBase<?>, Collection<TypedEntityReference>> byStatusMap = orderedTypeDesignations.values().iterator().next(); |
|
185 |
Iterator<TypeDesignationStatusBase<?>> keyIt = byStatusMap.keySet().iterator(); |
|
186 |
assertEquals("Holotype", keyIt.next().getLabel()); |
|
187 |
assertEquals("Isotype", keyIt.next().getLabel()); |
|
184 |
Iterator<TypeDesignationWorkingSet> byStatusMapIterator = orderedTypeDesignations.values().iterator(); |
|
185 |
Map<TypeDesignationStatusBase<?>, Collection<TypedEntityReference>> byStatusMap_1 = byStatusMapIterator.next(); |
|
186 |
Map<TypeDesignationStatusBase<?>, Collection<TypedEntityReference>> byStatusMap_2 = byStatusMapIterator.next(); |
|
187 |
Iterator<TypeDesignationStatusBase<?>> keyIt_1 = byStatusMap_1.keySet().iterator(); |
|
188 |
assertEquals("Isotype", keyIt_1.next().getLabel()); |
|
189 |
Iterator<TypeDesignationStatusBase<?>> keyIt_2 = byStatusMap_2.keySet().iterator(); |
|
190 |
assertEquals("Holotype", keyIt_2.next().getLabel()); |
|
191 |
assertEquals("Isotype", keyIt_2.next().getLabel()); |
|
188 | 192 |
} |
189 | 193 |
|
190 | 194 |
@Test |
Also available in: Unified diff
adapting assertion to changed testdata