Revision fde0968c
Added by Andreas Kohlbecker over 4 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/RegistrationPageTest.java | ||
---|---|---|
192 | 192 |
assertEquals("Registration Id: http://testbank.org/100008" + titleSuffix, driver.getTitle()); |
193 | 193 |
RegistrationItemFull regItem = p.getRegistrationItem(); |
194 | 194 |
assertNotNull(regItem); |
195 |
|
|
196 |
assertEquals( |
|
197 |
"for Glenodinium apiculatum Ehrenb., Infusionsthierchen: 258, pl. XXII. 24.7.1838-8.1838", |
|
198 |
regItem.getTypifiedNameElement().getText()); |
|
199 |
assertEquals( |
|
200 |
"published in: Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H., Still curling after all these years: Glenodinium apiculatum Ehrenb. (Peridiniales, Dinophyceae) repeatedly found at its type locality in Berlin (Germany) in Systematics and Biodiversity. 2017", |
|
201 |
regItem.getCitation().getText()); |
|
202 |
assertEquals( |
|
203 |
"Registration on 2019-02-12 09:08:29", |
|
204 |
regItem.getMetadata().getText()); |
|
205 |
|
|
206 |
// type designations in defined order |
|
207 |
// 1. Epitype |
|
208 |
assertEquals( |
|
209 |
"Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (CEDiT 2017E68).", |
|
210 |
regItem.getSpecimenTypeDesignations().get(0).getText()); |
|
211 |
|
|
212 |
// 2. Lectotype |
|
195 | 213 |
assertTrue( |
196 |
regItem.getSpecimenTypeDesignations().get(0).getText().startsWith("Lectotype: Germany, Berlin, 2.4.1835 (BHUPM 671). Naturkundemuseum Berlin (MFN) - Ehrenberg Collection"));
|
|
214 |
regItem.getSpecimenTypeDesignations().get(1).getText().startsWith("Lectotype: Germany, Berlin, 2.4.1835 (BHUPM 671). Naturkundemuseum Berlin (MFN) - Ehrenberg Collection"));
|
|
197 | 215 |
assertEquals( |
198 | 216 |
"BHUPM 671", |
199 |
regItem.getSpecimenTypeDesignations().get(0).getLinksInElement().get(0).getText());
|
|
217 |
regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(0).getText());
|
|
200 | 218 |
assertTrue( |
201 |
regItem.getSpecimenTypeDesignations().get(0).getLinksInElement().get(1).getUrl().endsWith("cdm_dataportal/reference/c5d980ff-8766-4322-9acb-7b0a499de707"));
|
|
219 |
regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(1).getUrl().endsWith("cdm_dataportal/reference/c5d980ff-8766-4322-9acb-7b0a499de707"));
|
|
202 | 220 |
List<List<GalleryImage>> galleryImages = ElementUtils.getGalleryImages(regItem.getSpecimenTypeDesignations().get(0).getElement(), p.getWait()); |
203 | 221 |
assertEquals("Expecting one row of images", 1, galleryImages.size()); |
204 | 222 |
assertEquals("Expecting 1 image in row", 1, galleryImages.get(0).size()); |
205 | 223 |
assertEquals( |
206 | 224 |
"http://download.naturkundemuseum-berlin.de/Ehrenberg/Ec%20Drawings/Ec%20draw%20001-999/Ec%20draw%20600-699/ECdraw671.jpg", |
207 | 225 |
galleryImages.get(0).get(0).getImageLink().getUrl()); |
226 |
|
|
227 |
// 3. Isolectotype |
|
208 | 228 |
assertEquals( |
209 | 229 |
"Isolectotype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (M M-0289351). http://herbarium.bgbm.org/object/B400042045", |
210 |
regItem.getSpecimenTypeDesignations().get(1).getText());
|
|
230 |
regItem.getSpecimenTypeDesignations().get(2).getText());
|
|
211 | 231 |
assertEquals( |
212 | 232 |
"M M-0289351", |
213 |
regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(0).getText());
|
|
233 |
regItem.getSpecimenTypeDesignations().get(2).getLinksInElement().get(0).getText());
|
|
214 | 234 |
assertEquals( |
215 | 235 |
"http://herbarium.bgbm.org/object/B400042045", |
216 |
regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(1).getText()); |
|
217 |
assertEquals( |
|
218 |
"Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (CEDiT 2017E68).", |
|
219 |
regItem.getSpecimenTypeDesignations().get(2).getText()); |
|
220 |
assertEquals( |
|
221 |
"for Glenodinium apiculatum Ehrenb., Infusionsthierchen: 258, pl. XXII. 24.7.1838-8.1838", |
|
222 |
regItem.getTypifiedNameElement().getText()); |
|
223 |
assertEquals( |
|
224 |
"published in: Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H., Still curling after all these years: Glenodinium apiculatum Ehrenb. (Peridiniales, Dinophyceae) repeatedly found at its type locality in Berlin (Germany) in Systematics and Biodiversity. 2017", |
|
225 |
regItem.getCitation().getText()); |
|
226 |
assertEquals( |
|
227 |
"Registration on 2019-02-12 09:08:29", |
|
228 |
regItem.getMetadata().getText()); |
|
236 |
regItem.getSpecimenTypeDesignations().get(2).getLinksInElement().get(1).getText()); |
|
237 |
|
|
238 |
|
|
229 | 239 |
} |
230 | 240 |
|
231 | 241 |
|
Also available in: Unified diff
fixing and improving test assertions