Project

General

Profile

« Previous | Next » 

Revision 1b756c5f

Added by Andreas Kohlbecker about 7 years ago

fix #6392 test for uses and use records and refactoring of the uses feature block

  • fixing wrong assumptions for cyprus
  • bibliography as pseudo feature block better testable

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Bassia_indica_TaxonProfileTest.java
8 8
 */
9 9
package eu.etaxonomy.dataportal.selenium.tests.cyprus;
10 10

  
11
import static org.junit.Assert.assertEquals;
12
import static org.junit.Assert.assertNotNull;
13
import static org.junit.Assert.assertNull;
14

  
15 11
import java.net.MalformedURLException;
16 12
import java.util.List;
17 13
import java.util.UUID;
......
80 76

  
81 77
        featureBlock = p.getFeatureBlockAt(2, "distribution", "div", "span");
82 78

  
83
        assertEquals("Distribution\nDivision 4A Division 5B Division 6C\nThe record for division 5 may refer to division 6.\nA. J. Chrtek & B. Slavík, Contribution to the flora of Cyprus. 4. in Fl. Medit. 10. 2001, B. A. Della & G. Iatrou, New plant records from Cyprus in Kew Bull. 50. 1995, C. R. Hand, Supplementary notes to the flora of Cyprus III. in Willdenowia 33. 2003", featureBlock.getText());
79
        assertEquals("Distribution\n"
80
                + "Division 4A\n"
81
                + "Division 5B\n"
82
                + "Division 6C\n"
83
                + "The record for division 5 may refer to division 6.\nA. J. Chrtek & B. Slavík, Contribution to the flora of Cyprus. 4. in Fl. Medit. 10. 2001, B. A. Della & G. Iatrou, New plant records from Cyprus in Kew Bull. 50. 1995, C. R. Hand, Supplementary notes to the flora of Cyprus III. in Willdenowia 33. 2003", featureBlock.getText());
84 84
        assertEquals("Distribution", featureBlock.getHeader());
85 85
        assertEquals("expecting two footnote keys", 3, featureBlock.countFootNoteKeys());
86 86

  

Also available in: Unified diff