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 Crepis_tectorum_SynonymyTest extends CdmDataPortalTestBase{
|
31
|
|
32
|
static UUID crepis_tectorum_Uuid = UUID.fromString("c62dff09-3f04-4f05-9aac-904d51ac1b77");
|
33
|
|
34
|
@Test
|
35
|
public void crepis_tectorum_synonyms() throws MalformedURLException {
|
36
|
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), crepis_tectorum_Uuid);
|
37
|
assertEquals(getContext().prepareTitle("Crepis tectorum"), driver.getTitle());
|
38
|
|
39
|
assertEquals("Crepis tectorum L., Sp. Pl.: 807. 1753", p.getAcceptedNameText());
|
40
|
|
41
|
// HomotypicalGroupSynonyms
|
42
|
assertEquals("≡ Hedypnois tectorum (L.) Huds., Fl. Angl., ed. 2: 341. 1778", p.getHomotypicalGroupSynonymName(1));
|
43
|
assertEquals("≡ Hieracium tectorum (L.) Karsch, Fl. Westfalen: 331. 1853", p.getHomotypicalGroupSynonymName(2));
|
44
|
assertEquals("≡ Hieracioides tectorum (L.) Kuntze, Revis. Gen. Pl. 1: 346. 1891", p.getHomotypicalGroupSynonymName(3));
|
45
|
assertEquals("≡ Crepis varia Moench, Methodus: 534. 1794, nom. illeg.", p.getHomotypicalGroupSynonymName(4));
|
46
|
assertEquals("≡ Crepis muralis Salisb., Prodr. Stirp. Chap. Allerton: 182. 1796, nom. illeg.", p.getHomotypicalGroupSynonymName(5));
|
47
|
assertEquals("≡ Crepis tectoria Dulac, Fl. Hautes-Pyrénées: 491. 1867, nom. illeg.", p.getHomotypicalGroupSynonymName(6));
|
48
|
|
49
|
// 1st HeterotypicalGroup
|
50
|
assertEquals("= Crepis tectorum var. segetalis Roth, Tent. Fl. Germ. 2: 254. 17931", p.getHeterotypicalGroupSynonymName(1, 1));
|
51
|
assertEquals("≡ Crepis stricta Schultz, Prodr. Fl. Starg. Suppl.: 41. 1819 [non Crepis stricta Scop. 1772]", p.getHeterotypicalGroupSynonymName(1, 2));
|
52
|
assertEquals("≡ Crepis tectorum var. stricta E. Mey. ex Bisch., Beitr. Fl. Deutschl.: 274. 1851, nom. illeg.", p.getHeterotypicalGroupSynonymName(1, 3));
|
53
|
assertEquals("≡ Crepis tectorum var. minima Schur, Enum. Pl. Transsilv.: 376. 1866, nom. illeg.", p.getHeterotypicalGroupSynonymName(1, 4));
|
54
|
|
55
|
assertEquals("= Crepis lanceolata Kit. [non Crepis lanceolata Sch. Bip. 1854]", p.getHeterotypicalGroupSynonymName(9, 1));
|
56
|
}
|
57
|
|
58
|
|
59
|
|
60
|
}
|