2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.model
.name
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.junit
.Assert
;
14 import org
.junit
.Before
;
15 import org
.junit
.BeforeClass
;
16 import org
.junit
.Test
;
23 public class CultivarPlantNameTest
{
24 @SuppressWarnings("unused")
25 private static final Logger logger
= Logger
.getLogger(CultivarPlantName
.class);
27 private static CultivarPlantName name1
;
31 * @throws java.lang.Exception
34 public static void setUpBeforeClass() throws Exception
{
38 * @throws java.lang.Exception
41 public void setUp() throws Exception
{
42 name1
= TaxonNameBase
.NewCultivarInstance(Rank
.SPECIES());
43 name1
.setGenusOrUninomial("Aus");
44 name1
.setSpecificEpithet("bus");
45 name1
.setCultivarName("cultivarus");
48 // ******************* TESTS *************************************/
51 public void testClone(){
52 CultivarPlantName clone
= (CultivarPlantName
)name1
.clone();
53 Assert
.assertEquals("Cultivar string should be equal", "cultivarus", clone
.getCultivarName());
54 // Assert.assertNotSame("Cultivar string should be not same (but equal)", name1.getCultivarName(), clone.getCultivarName());