Revision a5594ab7
Added by Alex Theys almost 12 years ago
5.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Cyprus_HybridTest.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.dataportal.selenium.tests.cyprus; |
11 | 11 |
|
12 | 12 |
import static org.junit.Assert.assertEquals; |
13 |
import static org.junit.Assert.assertTrue; |
|
13 | 14 |
|
14 | 15 |
import java.net.MalformedURLException; |
15 | 16 |
import java.util.UUID; |
16 | 17 |
|
17 |
import org.junit.Ignore; |
|
18 | 18 |
import org.junit.Test; |
19 | 19 |
|
20 | 20 |
import eu.etaxonomy.dataportal.DataPortalContext; |
21 |
import eu.etaxonomy.dataportal.elements.ClassificationTreeBlock; |
|
22 |
import eu.etaxonomy.dataportal.elements.ClassificationTreeElement; |
|
21 | 23 |
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase; |
22 | 24 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts; |
25 |
import eu.etaxonomy.dataportal.pages.TaxonProfilePage; |
|
23 | 26 |
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage; |
24 | 27 |
|
25 | 28 |
/** |
... | ... | |
32 | 35 |
public class Cyprus_HybridTest extends CdmDataPortalTestBase{ |
33 | 36 |
|
34 | 37 |
|
35 |
static UUID orchiserapias_Uuid = UUID.fromString("0aee7eea-84e7-4b61-8cb6-d17313cc9b80");
|
|
38 |
static UUID orchiserapias_Uuid = UUID.fromString("0aee7eea-84e7-4b61-8cb6-d17313cc9b80");
|
|
36 | 39 |
|
37 |
static UUID epilobium_aschersonianum_Uuid = UUID.fromString("e13ea422-5d45-477b-ade3-8dc84dbc9dbc");
|
|
40 |
static UUID epilobium_aschersonianum_Uuid = UUID.fromString("e13ea422-5d45-477b-ade3-8dc84dbc9dbc");
|
|
38 | 41 |
|
42 |
// |
|
43 |
static UUID aegilops_biuncialis_x_geniculata_Uuid = UUID.fromString("88ff0fbb-c0df-46c1-9969-cf318ea97dbb"); |
|
39 | 44 |
|
40 |
@Test |
|
41 |
public void orchiserapias() throws MalformedURLException { |
|
42 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), orchiserapias_Uuid); |
|
43 |
String expectedName = "×Orchiserapias"; |
|
44 |
assertEquals(getContext().prepareTitle(expectedName), p.getTitle()); |
|
45 |
assertEquals(expectedName, p.getAcceptedName()); |
|
46 |
assertEquals("≡ Orchis × Serapias", p.getHomotypicalGroupSynonymName(1)); |
|
47 |
} |
|
48 | 45 |
|
49 |
@Test |
|
50 |
public void epilobium_aschersonianum() throws MalformedURLException { |
|
51 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), epilobium_aschersonianum_Uuid); |
|
52 |
assertEquals(getContext().prepareTitle("Epilobium ×aschersonianum"), p.getTitle()); |
|
53 |
assertEquals("Epilobium ×aschersonianum Hausskn.", p.getAcceptedName()); |
|
54 |
assertEquals("≡ Epilobium lanceolatum × parviflorum", p.getHomotypicalGroupSynonymName(1)); |
|
55 |
} |
|
46 |
@Test |
|
47 |
public void orchiserapias() throws MalformedURLException { |
|
48 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), orchiserapias_Uuid); |
|
49 |
String expectedName = "×Orchiserapias"; |
|
50 |
assertEquals(getContext().prepareTitle(expectedName), p.getTitle()); |
|
51 |
assertEquals(expectedName, p.getAcceptedName()); |
|
52 |
assertEquals("≡ Orchis × Serapias", p.getHomotypicalGroupSynonymName(1)); |
|
53 |
} |
|
56 | 54 |
|
55 |
@Test |
|
56 |
public void epilobium_aschersonianum() throws MalformedURLException { |
|
57 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), epilobium_aschersonianum_Uuid); |
|
58 |
assertEquals(getContext().prepareTitle("Epilobium ×aschersonianum"), p.getTitle()); |
|
59 |
assertEquals("Epilobium ×aschersonianum Hausskn.", p.getAcceptedName()); |
|
60 |
assertEquals("≡ Epilobium lanceolatum × parviflorum", p.getHomotypicalGroupSynonymName(1)); |
|
61 |
} |
|
62 |
|
|
63 |
@Test |
|
64 |
public void aegilops_biuncialis_x_geniculata() throws MalformedURLException { |
|
65 |
TaxonProfilePage p = new TaxonProfilePage(driver, getContext(), aegilops_biuncialis_x_geniculata_Uuid); |
|
66 |
assertEquals(getContext().prepareTitle("Aegilops biuncialis × geniculata"), p.getTitle()); |
|
67 |
ClassificationTreeBlock classificationTree = p.getClassificationTree(); |
|
68 |
ClassificationTreeElement focusedElement = classificationTree.getFocusedElement(); |
|
69 |
assertTrue(classificationTree.isVisibleInViewPort(focusedElement)); |
|
70 |
assertEquals("Abbreviated form of name should be used", "A. biuncialis × geniculata", focusedElement.getTaxonName()); |
|
71 |
} |
|
57 | 72 |
|
58 | 73 |
} |
Also available in: Unified diff
AT: committing Dataportal to Branch post Merge