Project

General

Profile

Download (1.53 KB) Statistics
| Branch: | Tag: | Revision:
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.cdm.model.name;
10

    
11
import org.apache.log4j.Logger;
12
import org.junit.Assert;
13
import org.junit.Before;
14
import org.junit.BeforeClass;
15
import org.junit.Test;
16

    
17
/**
18
 * @author a.mueller
19
 * @date 03.01.2011
20
 *
21
 */
22
public class BacterialNameTest {
23
	@SuppressWarnings("unused")
24
	private static final Logger logger = Logger.getLogger(BacterialNameTest.class);
25
	
26
	private BacterialName bacterialName1;
27
	
28
	/**
29
	 * @throws java.lang.Exception
30
	 */
31
	@BeforeClass
32
	public static void setUpBeforeClass() throws Exception {
33
	}
34

    
35
	/**
36
	 * @throws java.lang.Exception
37
	 */
38
	@Before
39
	public void setUp() throws Exception {
40
		bacterialName1 = BacterialName.NewInstance(Rank.SPECIES());
41
	}
42

    
43
//****************** TESTS ******************************************/
44
	
45
	/**
46
	 * Test method for {@link eu.etaxonomy.cdm.model.name.BacterialName#clone()}.
47
	 */
48
	@Test
49
	public void testClone() {
50
		bacterialName1.setSubGenusAuthorship("Bacter.");
51
		bacterialName1.setNameApprobation("approb");
52
		BacterialName clone = (BacterialName)bacterialName1.clone();
53
		Assert.assertEquals("SubGenusAuthorship should be equal", "Bacter.", clone.getSubGenusAuthorship());
54
		Assert.assertEquals("Name approbation should be equal", "approb", clone.getNameApprobation());
55
	}
56

    
57
}
(1-1/13)