Revision 28c5c87a
Added by Andreas Kohlbecker over 9 years ago
7.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Allium_guttatum_subsp_guttatum_TaxonProfileTest.java | ||
---|---|---|
97 | 97 |
// featureBlock = p.getFeatureBlockAt(3, "systematics", "div", null); |
98 | 98 |
// assertEquals("Systematics\nTaxonomy and nomenclature follow Mathew (1996).\nMathew B. 1996: A review of Allium section Allium . - Kew.", featureBlock.getText()); |
99 | 99 |
|
100 |
FeatureBlock bibliography = p.getFeatureBlockAt(5, "bibliography", "div", "div"); |
|
101 |
List<BaseElement> bibliographyEntries = bibliography.getFootNotes(); |
|
102 |
|
|
100 | 103 |
featureBlock = p.getFeatureBlockAt(4, "distribution", "div", "span"); |
104 |
|
|
101 | 105 |
assertEquals("Distribution\nDivision 21,2\n1. R. D. Meikle, Flora of Cyprus 2. 1985, 2. R. Hand, Supplementary notes to the flora of Cyprus VI. in Willdenowia 39. 2009", featureBlock.getText()); |
102 | 106 |
assertEquals("Distribution", featureBlock.getHeader()); |
103 | 107 |
assertEquals("expecting two footnote keys", 2, featureBlock.getFootNoteKeys().size()); |
104 | 108 |
|
109 |
assertEquals("A. R. D. Meikle, Flora of Cyprus 2. 1985", bibliographyEntries.get(1)); |
|
110 |
assertEquals("B. R. Hand, Supplementary notes to the flora of Cyprus VI. in Willdenowia 39. 2009", bibliographyEntries.get(1)); |
|
111 |
|
|
105 | 112 |
LinkElement footNoteKey_1 = featureBlock.getFootNoteKeys().get(0); |
106 | 113 |
BaseElement footNote_1 = featureBlock.getFootNotes().get(0); |
107 | 114 |
assertTrue("expecting one footnote 0 to be the footnote for key 0",footNote_1.getText().startsWith(footNoteKey_1.getText())); |
Also available in: Unified diff
refactoring the feature node blocks - 1