Revision d2a09415
Added by Andreas Kohlbecker over 8 years ago
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/HomonymTest.java | ||
---|---|---|
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.cichorieae; |
|
11 |
|
|
12 |
import static org.junit.Assert.assertEquals; |
|
13 |
|
|
14 |
import java.net.MalformedURLException; |
|
15 |
import java.util.UUID; |
|
16 |
|
|
17 |
import org.junit.Test; |
|
18 |
|
|
19 |
import eu.etaxonomy.dataportal.DataPortalContext; |
|
20 |
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase; |
|
21 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts; |
|
22 |
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage; |
|
23 |
|
|
24 |
/** |
|
25 |
* |
|
26 |
* @author a.kohlbecker |
|
27 |
* |
|
28 |
*/ |
|
29 |
|
|
30 |
@DataPortalContexts( { DataPortalContext.cichorieae }) |
|
31 |
public class HomonymTest extends CdmDataPortalTestBase{ |
|
32 |
|
|
33 |
static UUID pilosella_guthnikiana_Uuid = UUID.fromString("6d711fa0-77c3-42df-9d44-83fdc78f3482"); |
|
34 |
static UUID lactuca_glandulifera_Uuid = UUID.fromString("6ece0be7-ba4a-4363-b103-4e60429988e5"); |
|
35 |
static UUID dubyaea_hispida_Uuid = UUID.fromString("e72f3bc5-70d7-404c-bfd7-125fec7387bb"); |
|
36 |
|
|
37 |
|
|
38 |
@Test |
|
39 |
public void pilosella_guthnikiana_homonyms() throws MalformedURLException { |
|
40 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), pilosella_guthnikiana_Uuid); |
|
41 |
assertEquals(getContext().prepareTitle("Pilosella guthnikiana"), driver.getTitle()); |
|
42 |
assertEquals("Pilosella guthnikiana (Hegetschw.) Soják in Preslia 43: 185. 1971", p.getAcceptedNameText()); |
|
43 |
|
|
44 |
assertEquals("= Hieracium multiflorum Gaudin, Fl. Helv. 5: 87. 1829 [non Hieracium multiflorum Gray 1821]", p.getHeterotypicalGroupSynonymName(1, 1)); |
|
45 |
assertEquals("= Hieracium cruentum Nägeli & Peter, Hierac. Mitt.-Eur. 1: 455, 811. 1885, nom. illeg. [non Hieracium cruentum Jord. 1849]", p.getHeterotypicalGroupSynonymName(6, 1)); |
|
46 |
|
|
47 |
} |
|
48 |
|
|
49 |
@Test |
|
50 |
public void lactuca_glandulifera_homonyms() throws MalformedURLException { |
|
51 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), lactuca_glandulifera_Uuid); |
|
52 |
assertEquals(getContext().prepareTitle("Lactuca glandulifera"), driver.getTitle()); |
|
53 |
assertEquals("Lactuca glandulifera Hook. f. in J. Linn. Soc., Bot. 7: 203. 1864", p.getAcceptedNameText()); |
|
54 |
|
|
55 |
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)); |
|
56 |
} |
|
57 |
|
|
58 |
@Test |
|
59 |
public void dubyaea_hispida_homonyms() throws MalformedURLException { |
|
60 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), dubyaea_hispida_Uuid); |
|
61 |
assertEquals(getContext().prepareTitle("Dubyaea hispida"), driver.getTitle()); |
|
62 |
assertEquals("Dubyaea hispida DC., Prodr. 7: 247. 1838, nom. nov.", p.getAcceptedNameText()); |
|
63 |
|
|
64 |
assertEquals("≡ Hieracium hispidum D. Don, Prodr. Fl. Nepal.: 165. 1825 [non Hieracium hispidum Forssk. 1775]", p.getHomotypicalGroupSynonymName(1)); |
|
65 |
assertEquals("≡ Lactuca dubyaea C. B. Clarke, Compos. Ind.: 271. 1876 [non Lactuca hispida DC. 1838]", p.getHomotypicalGroupSynonymName(3)); |
|
66 |
} |
|
67 |
} |
|
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.cichorieae; |
|
11 |
|
|
12 |
import static org.junit.Assert.assertEquals; |
|
13 |
|
|
14 |
import java.net.MalformedURLException; |
|
15 |
import java.util.UUID; |
|
16 |
|
|
17 |
import org.junit.Test; |
|
18 |
|
|
19 |
import eu.etaxonomy.dataportal.DataPortalContext; |
|
20 |
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase; |
|
21 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts; |
|
22 |
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage; |
|
23 |
|
|
24 |
/** |
|
25 |
* |
|
26 |
* @author a.kohlbecker |
|
27 |
* |
|
28 |
*/ |
|
29 |
|
|
30 |
@DataPortalContexts( { DataPortalContext.cichorieae }) |
|
31 |
public class HomonymTest extends CdmDataPortalTestBase{ |
|
32 |
|
|
33 |
static UUID pilosella_guthnikiana_Uuid = UUID.fromString("6d711fa0-77c3-42df-9d44-83fdc78f3482"); |
|
34 |
static UUID lactuca_glandulifera_Uuid = UUID.fromString("6ece0be7-ba4a-4363-b103-4e60429988e5"); |
|
35 |
static UUID dubyaea_hispida_Uuid = UUID.fromString("e72f3bc5-70d7-404c-bfd7-125fec7387bb"); |
|
36 |
|
|
37 |
|
|
38 |
@Test |
|
39 |
public void pilosella_guthnikiana_homonyms() throws MalformedURLException { |
|
40 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), pilosella_guthnikiana_Uuid); |
|
41 |
assertEquals(getContext().prepareTitle("Pilosella guthnikiana"), driver.getTitle()); |
|
42 |
assertEquals("Pilosella guthnikiana (Hegetschw.) Soják in Preslia 43: 185. 1971", p.getAcceptedNameText()); |
|
43 |
|
|
44 |
assertEquals("= Hieracium multiflorum Gaudin, Fl. Helv. 5: 87. 1829 [non Hieracium multiflorum Gray 1821]", p.getHeterotypicalGroupSynonymName(1, 1)); |
|
45 |
assertEquals("= Hieracium cruentum Nägeli & Peter, Hierac. Mitt.-Eur. 1: 455, 811. 1885, nom. illeg. [non Hieracium cruentum Jord. 1849]", p.getHeterotypicalGroupSynonymName(6, 1)); |
|
46 |
|
|
47 |
} |
|
48 |
|
|
49 |
@Test |
|
50 |
public void lactuca_glandulifera_homonyms() throws MalformedURLException { |
|
51 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), lactuca_glandulifera_Uuid); |
|
52 |
assertEquals(getContext().prepareTitle("Lactuca glandulifera"), driver.getTitle()); |
|
53 |
assertEquals("Lactuca glandulifera Hook. f. in J. Linn. Soc., Bot. 7: 203. 1864", p.getAcceptedNameText()); |
|
54 |
|
|
55 |
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)); |
|
56 |
} |
|
57 |
|
|
58 |
@Test |
|
59 |
public void dubyaea_hispida_homonyms() throws MalformedURLException { |
|
60 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), dubyaea_hispida_Uuid); |
|
61 |
assertEquals(getContext().prepareTitle("Dubyaea hispida"), driver.getTitle()); |
|
62 |
assertEquals("Dubyaea hispida DC., Prodr. 7: 247. 1838, nom. nov.", p.getAcceptedNameText()); |
|
63 |
|
|
64 |
assertEquals("≡ Hieracium hispidum D. Don, Prodr. Fl. Nepal.: 165. 1825 [non Hieracium hispidum Forssk. 1775]", p.getHomotypicalGroupSynonymName(1)); |
|
65 |
assertEquals("≡ Lactuca dubyaea C. B. Clarke, Compos. Ind.: 271. 1876 [non Lactuca hispida DC. 1838]", p.getHomotypicalGroupSynonymName(3)); |
|
66 |
} |
|
67 |
} |
Also available in: Unified diff
CRLF will be replaced by LF issues