Project

General

Profile

Download (3.06 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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.cdm.model.name;
10

    
11
import static org.junit.Assert.assertEquals;
12

    
13
import java.util.UUID;
14

    
15
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
16
import org.junit.Test;
17

    
18
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
19

    
20
/**
21
 * @author a.babadshanjan
22
 * @since 24.03.2009
23
 */
24
public class NameTypeDesignationStatusTest extends EntityTestBase {
25
	@SuppressWarnings("unused")
26
	private static final Logger logger = LogManager.getLogger(NameTypeDesignationStatusTest.class);
27

    
28
	private static final UUID uuidAutomatic = UUID.fromString("e89d8b21-615a-4602-913f-1625bf39a69f");
29
//	private static final UUID uuidFirstRevisor = UUID.fromString("a14ec046-c48f-4a73-939f-bd57880c7565");
30
	private static final UUID uuidMonotypy = UUID.fromString("3fc639b2-9a64-45f8-9a81-657a4043ad74");
31
	private static final UUID uuidNotApplicable = UUID.fromString("91a9d6a9-7754-41cd-9f7e-be136f599f7e");
32
	private static final UUID uuidOriginalDesignation = UUID.fromString("40032a44-973b-4a64-b25e-76f86c3a753c");
33
	private static final UUID uuidPresentDesignation = UUID.fromString("e5f38f5d-995d-4470-a036-1a9792a543fc");
34
	private static final UUID uuidSubsequentMonotypy = UUID.fromString("2b5806d8-31b0-406e-a32a-4adac0c89ae4");
35
	private static final UUID uuidSubsequentDesignation = UUID.fromString("3e449e7d-a03c-4431-a7d3-aa258406f6b2");
36
	private static final UUID uuidTautonymy = UUID.fromString("84521f09-3e10-43f5-aa6f-2173a55a6790");
37

    
38
	@Test
39
	public void testNameTypeDesignationStatusStringString() {
40
		NameTypeDesignationStatus term = new NameTypeDesignationStatus("term", "label", null);
41
		assertEquals("label", term.getLabel());
42
	}
43

    
44
	@Test
45
	public void testAUTOMATIC() {
46
		assertEquals(uuidAutomatic,  NameTypeDesignationStatus.AUTOMATIC().getUuid());
47
	}
48

    
49
	@Test
50
	public void testMONOTYPY() {
51
		assertEquals(uuidMonotypy,  NameTypeDesignationStatus.MONOTYPY().getUuid());
52
	}
53

    
54
	@Test
55
	public void testNOT_APPLICABLE() {
56
		assertEquals(uuidNotApplicable,  NameTypeDesignationStatus.NOT_APPLICABLE().getUuid());
57
	}
58

    
59
	@Test
60
	public void testORIGINAL_DESIGNATION() {
61
		assertEquals(uuidOriginalDesignation,  NameTypeDesignationStatus.ORIGINAL_DESIGNATION().getUuid());
62
	}
63

    
64
	@Test
65
	public void testPRESENT_DESIGNATION() {
66
		assertEquals(uuidPresentDesignation,  NameTypeDesignationStatus.PRESENT_DESIGNATION().getUuid());
67
	}
68

    
69
	@Test
70
	public void testSUBSEQUENT_MONOTYPY() {
71
		assertEquals(uuidSubsequentMonotypy,  NameTypeDesignationStatus.SUBSEQUENT_MONOTYPY().getUuid());
72
	}
73

    
74
	@Test
75
	public void testSUBSEQUENT_DESIGNATION() {
76
		assertEquals(uuidSubsequentDesignation,  NameTypeDesignationStatus.SUBSEQUENT_DESIGNATION().getUuid());
77
	}
78

    
79
	@Test
80
	public void testTAUTONOMY() {
81
		assertEquals(uuidTautonymy,  NameTypeDesignationStatus.TAUTONYMY().getUuid());
82
	}
83
}
(6-6/17)