Revision c5294246
Added by Andreas Kohlbecker over 7 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_TypeTest.java | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
package eu.etaxonomy.dataportal.selenium.tests.cichorieae; |
11 | 11 |
|
12 |
import static org.junit.Assert.assertEquals; |
|
13 |
|
|
14 | 12 |
import java.net.MalformedURLException; |
15 | 13 |
import java.util.List; |
16 | 14 |
import java.util.UUID; |
... | ... | |
34 | 32 |
@DataPortalContexts( { DataPortalContext.cichorieae }) |
35 | 33 |
public class Cichorieae_TypeTest extends CdmDataPortalTestBase{ |
36 | 34 |
|
37 |
|
|
38 | 35 |
static UUID cichorium_uuid = UUID.fromString("21d7161a-455e-4f4d-9d61-7f0100c38ff3"); |
39 | 36 |
|
40 | 37 |
static UUID scorzonera_tuzgoluensis_Uuid = UUID.fromString("296b4758-048a-47bb-a394-affca64dfc40"); |
41 | 38 |
|
42 | 39 |
static UUID lactuca_glandulifera_Uuid = UUID.fromString("6ece0be7-ba4a-4363-b103-4e60429988e5"); |
43 | 40 |
|
41 |
static UUID hypochaeris_uuid = UUID.fromString("79d6b29a-7a73-42b6-a024-2ab35fbd60ff"); |
|
42 |
|
|
43 |
static UUID hypochaeris_maculata_uuid = UUID.fromString("90943959-f2ef-4a3a-8744-c8bcd935c8c2"); |
|
44 | 44 |
|
45 | 45 |
@Test |
46 | 46 |
public void cichorium() throws MalformedURLException { |
... | ... | |
85 | 85 |
assertEquals("Syntype: [Cameroon], Maitland 226", typeDesignations.get(0).getText()); |
86 | 86 |
assertEquals("Syntype: [Cameroon], Mildbraed 10814", typeDesignations.get(1).getText()); |
87 | 87 |
assertEquals("Syntype: [Cameroon] \"Cameroons Mt., 6,000 ft.\", Dunlap 47", typeDesignations.get(2).getText()); |
88 |
} |
|
88 | 89 |
|
90 |
@Test |
|
91 |
public void hypochaeris_maculata() throws MalformedURLException { |
|
92 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), hypochaeris_maculata_uuid); |
|
93 |
assertEquals(getContext().prepareTitle("Hypochaeris maculata"), driver.getTitle()); |
|
94 |
assertEquals("Hypochaeris maculata L., Sp. Pl.: 810. 1753", p.getAcceptedNameText()); |
|
95 |
List<TypeDesignationElement> typeDesignations = p.getHomotypicalGroupTypeDesignations(); |
|
96 |
assertEquals("Expecting two Typedesignation", 2, typeDesignations.size()); |
|
97 |
assertEquals(TypeDesignationType.specimenTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
|
98 |
assertEquals("Type: \"Habitat in Europae frigidioris pratis asperis.\"", typeDesignations.get(0).getText()); |
|
99 |
assertEquals(TypeDesignationType.specimenTypeDesignation, typeDesignations.get(1).getTypeDesignationType()); |
|
100 |
assertEquals("Lectotype (designated by Iamonico 2012:??1): [s. loc.], Herb. Linnaeus, no. 959.1", typeDesignations.get(1).getText()); |
|
101 |
} |
|
89 | 102 |
|
103 |
@Test |
|
104 |
public void hypochaeris() throws MalformedURLException { |
|
105 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), hypochaeris_uuid); |
|
106 |
assertEquals(getContext().prepareTitle("Hypochaeris"), driver.getTitle()); |
|
107 |
assertEquals("Hypochaeris L., Sp. Pl.: 810. 17531", p.getAcceptedNameText()); |
|
108 |
|
|
109 |
List<TypeDesignationElement> typeDesignations = p.getHomotypicalGroupTypeDesignations(); |
|
110 |
assertEquals("Expecting two Typedesignation", 1, typeDesignations.size()); |
|
111 |
assertEquals(TypeDesignationType.nameTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
|
112 |
assertEquals("Lectotype (designated by M. L. Green: 1783): Hypochaeris radicata L.", typeDesignations.get(0).getText()); |
|
113 |
|
|
114 |
typeDesignations = p.getHeterotypicalGroupTypeDesignations(2); |
|
115 |
assertEquals("Expecting two Typedesignation", 1, typeDesignations.size()); |
|
116 |
assertEquals(TypeDesignationType.nameTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
|
117 |
assertEquals("Lectotype (designated by Steudel 1841: 5685): Seriola laevigata L.", typeDesignations.get(0).getText()); |
|
90 | 118 |
} |
91 | 119 |
|
92 | 120 |
} |
Also available in: Unified diff
ref #3061 fixing position of footnote