1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2009 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.dataportal.selenium.tests.cyprus;
|
11
|
|
12
|
import static org.junit.Assert.assertEquals;
|
13
|
|
14
|
import java.net.MalformedURLException;
|
15
|
import java.util.UUID;
|
16
|
|
17
|
import org.junit.Ignore;
|
18
|
import org.junit.Test;
|
19
|
|
20
|
import eu.etaxonomy.dataportal.DataPortalContext;
|
21
|
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
|
22
|
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
23
|
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage;
|
24
|
|
25
|
/**
|
26
|
*
|
27
|
* @author a.kohlbecker
|
28
|
*
|
29
|
*/
|
30
|
|
31
|
@DataPortalContexts( { DataPortalContext.cyprus })
|
32
|
public class Cyprus_HybridTest extends CdmDataPortalTestBase{
|
33
|
|
34
|
|
35
|
static UUID orchiserapias_Uuid = UUID.fromString("0aee7eea-84e7-4b61-8cb6-d17313cc9b80");
|
36
|
|
37
|
static UUID epilobium_aschersonianum_Uuid = UUID.fromString("e13ea422-5d45-477b-ade3-8dc84dbc9dbc");
|
38
|
|
39
|
|
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
|
|
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
|
}
|
56
|
|
57
|
|
58
|
}
|