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 scorzonera_Uuid = UUID.fromString("6d711fa0-77c3-42df-9d44-83fdc78f3482");
|
34
|
|
35
|
@Test
|
36
|
public void scorzonera_typeDesignations() throws MalformedURLException {
|
37
|
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), scorzonera_Uuid);
|
38
|
assertEquals(getContext().prepareTitle("Pilosella guthnikiana"), p.getTitle());
|
39
|
assertEquals("Pilosella guthnikiana (Hegetschw.) Soják in Preslia 43: 185. 1971", p.getAcceptedNameText());
|
40
|
|
41
|
|
42
|
assertEquals("= Hieracium multiflorum Gaudin, Fl. Helv. 5: 87. 1829 [non Hieracium multiflorum Gray 1821]", p.getHeterotypicalGroupSynonymName(1, 1));
|
43
|
assertEquals("= Hieracium cruentum Nägeli & Peter, Hierac. Mitt.-Eur. 1: 455, 811. 1885, nom. illeg. [non Hieracium cruentum Jord. 1849]", p.getHeterotypicalGroupSynonymName(6, 1));
|
44
|
}
|
45
|
|
46
|
// TODO find taxon with 'nec' homonym and implement test for this
|
47
|
|
48
|
//TODO implement test for basionym of "Hieracium sparsum subsp. macrolepis" this taxon should also have homonym name rels !!!
|
49
|
}
|