Project

General

Profile

« Previous | Next » 

Revision 2d370ced

Added by Andreas Müller over 7 years ago

ref #6366 move cultivar attributes and functions to TaxonNameBase

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/CultivarPlantNameTest.java
1 1
/**
2 2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
15 15
import org.junit.BeforeClass;
16 16
import org.junit.Test;
17 17

  
18
import eu.etaxonomy.cdm.model.name.CultivarPlantName;
19
import eu.etaxonomy.cdm.model.name.Rank;
20

  
21 18
/**
22 19
 * @author a.mueller
23 20
 * @date 03.01.2011
......
26 23
public class CultivarPlantNameTest {
27 24
	@SuppressWarnings("unused")
28 25
	private static final Logger logger = Logger.getLogger(CultivarPlantName.class);
29
	
26

  
30 27
	private static CultivarPlantName name1;
31 28

  
32
	
29

  
33 30
	/**
34 31
	 * @throws java.lang.Exception
35 32
	 */
......
42 39
	 */
43 40
	@Before
44 41
	public void setUp() throws Exception {
45
		name1 = CultivarPlantName.NewInstance(Rank.SPECIES());
42
		name1 = TaxonNameBase.NewCultivarInstance(Rank.SPECIES());
46 43
		name1.setGenusOrUninomial("Aus");
47 44
		name1.setSpecificEpithet("bus");
48 45
		name1.setCultivarName("cultivarus");
49 46
	}
50
	
47

  
51 48
// ******************* TESTS *************************************/
52
	
49

  
53 50
	@Test
54 51
	public void testClone(){
55 52
		CultivarPlantName clone = (CultivarPlantName)name1.clone();
56 53
		Assert.assertEquals("Cultivar string should be equal", "cultivarus", clone.getCultivarName());
57 54
//		Assert.assertNotSame("Cultivar string should be not same (but equal)", name1.getCultivarName(), clone.getCultivarName());
58 55
	}
59
	
56

  
60 57

  
61 58
}

Also available in: Unified diff