Project

General

Profile

« Previous | Next » 

Revision c367b0ab

Added by Andreas Kohlbecker over 9 years ago

refactoring the feature node blocks - 2 + adapting test suite

View differences:

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();
100
//        
102 101

  
103 102
        featureBlock = p.getFeatureBlockAt(4, "distribution", "div", "span");
104 103

  
......
106 105
        assertEquals("Distribution", featureBlock.getHeader());
107 106
        assertEquals("expecting two footnote keys", 2, featureBlock.getFootNoteKeys().size());
108 107

  
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));
108
//        ------- prepared for  bibliography ---------
109
//        FeatureBlock bibliography = p.getFeatureBlockAt(5, "bibliography", "div", "div");
110
//        List<BaseElement> bibliographyEntries = bibliography.getFootNotes();
111
//        assertEquals("A. R. D. Meikle, Flora of Cyprus 2. 1985", bibliographyEntries.get(1));
112
//        assertEquals("B. R. Hand, Supplementary notes to the flora of Cyprus VI. in Willdenowia 39. 2009", bibliographyEntries.get(1));
111 113

  
112 114
        LinkElement footNoteKey_1 = featureBlock.getFootNoteKeys().get(0);
113 115
        BaseElement footNote_1 = featureBlock.getFootNotes().get(0);

Also available in: Unified diff