1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.dataportal.selenium.tests.cichorieae;
|
10
|
|
11
|
import static org.junit.Assert.assertEquals;
|
12
|
|
13
|
import java.net.MalformedURLException;
|
14
|
import java.util.UUID;
|
15
|
|
16
|
import org.junit.Test;
|
17
|
|
18
|
import eu.etaxonomy.dataportal.DataPortalSite;
|
19
|
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
|
20
|
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
21
|
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage;
|
22
|
|
23
|
/**
|
24
|
*
|
25
|
* @author a.kohlbecker
|
26
|
*
|
27
|
*/
|
28
|
|
29
|
@DataPortalContexts( { DataPortalSite.cichorieae })
|
30
|
public class HomonymTest extends CdmDataPortalTestBase{
|
31
|
|
32
|
static UUID pilosella_guthnikiana_Uuid = UUID.fromString("6d711fa0-77c3-42df-9d44-83fdc78f3482");
|
33
|
static UUID lactuca_glandulifera_Uuid = UUID.fromString("6ece0be7-ba4a-4363-b103-4e60429988e5");
|
34
|
static UUID dubyaea_hispida_Uuid = UUID.fromString("e72f3bc5-70d7-404c-bfd7-125fec7387bb");
|
35
|
|
36
|
|
37
|
@Test
|
38
|
public void pilosella_guthnikiana_homonyms() throws MalformedURLException {
|
39
|
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), pilosella_guthnikiana_Uuid);
|
40
|
assertEquals(getContext().prepareTitle("Pilosella guthnikiana"), driver.getTitle());
|
41
|
assertEquals("Pilosella guthnikiana (Hegetschw.) Soják in Preslia 43: 185. 1971", p.getAcceptedNameText());
|
42
|
|
43
|
assertEquals("= Hieracium multiflorum Gaudin, Fl. Helv. 5: 87. 1829 [non Hieracium multiflorum Gray 1821]", p.getHeterotypicalGroupSynonymName(1, 1));
|
44
|
assertEquals("= Hieracium cruentum Nägeli & Peter, Hierac. Mitt.-Eur. 1: 455, 811. 1885, nom. illeg. [non Hieracium cruentum Jord. 1849]", p.getHeterotypicalGroupSynonymName(6, 1));
|
45
|
|
46
|
}
|
47
|
|
48
|
@Test
|
49
|
public void lactuca_glandulifera_homonyms() throws MalformedURLException {
|
50
|
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), lactuca_glandulifera_Uuid);
|
51
|
assertEquals(getContext().prepareTitle("Lactuca glandulifera"), driver.getTitle());
|
52
|
assertEquals("Lactuca glandulifera Hook. f. in J. Linn. Soc., Bot. 7: 203. 1864", p.getAcceptedNameText());
|
53
|
|
54
|
assertEquals("= Lactuca integrifolia De Wild., Pl. Bequaert. 5: 456. 1932, nom. illeg. [non Lactuca integrifolia Nutt. 1818 nec Lactuca integrifolia Bigelow 1824]", p.getHeterotypicalGroupSynonymName(3, 1));
|
55
|
}
|
56
|
|
57
|
@Test
|
58
|
public void dubyaea_hispida_homonyms() throws MalformedURLException {
|
59
|
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), dubyaea_hispida_Uuid);
|
60
|
assertEquals(getContext().prepareTitle("Dubyaea hispida"), driver.getTitle());
|
61
|
assertEquals("Dubyaea hispida DC., Prodr. 7: 247. 1838, nom. nov.", p.getAcceptedNameText());
|
62
|
|
63
|
assertEquals("≡ Hieracium hispidum D. Don, Prodr. Fl. Nepal.: 165. 1825 [non Hieracium hispidum Forssk. 1775]", p.getHomotypicalGroupSynonymName(1));
|
64
|
assertEquals("≡ Lactuca dubyaea C. B. Clarke, Compos. Ind.: 271. 1876 [non Lactuca hispida DC. 1838]", p.getHomotypicalGroupSynonymName(3));
|
65
|
}
|
66
|
}
|