Project

General

Profile

« Previous | Next » 

Revision 4dbcb616

Added by Andreas Müller over 3 years ago

cleanup and use TermTestBase for model tests

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/SpecimenTypeDesignationTest.java
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
*/
9

  
10 9
package eu.etaxonomy.cdm.model.name;
11 10

  
12

  
13 11
import static org.junit.Assert.assertEquals;
14 12
import static org.junit.Assert.assertNotNull;
15 13
import static org.junit.Assert.assertTrue;
......
18 16

  
19 17
import org.apache.log4j.Logger;
20 18
import org.junit.Before;
21
import org.junit.BeforeClass;
22 19
import org.junit.Test;
23 20
import org.springframework.beans.BeanUtils;
24 21

  
25 22
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
26
import eu.etaxonomy.cdm.model.term.DefaultTermInitializer;
23
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
27 24

  
28 25
/**
29 26
 * @author a.babadshanjan
30 27
 * @since 19.05.2009
31 28
 */
32
public class SpecimenTypeDesignationTest {
29
public class SpecimenTypeDesignationTest extends EntityTestBase {
30

  
33 31
	@SuppressWarnings("unused")
34 32
	private static final Logger logger = Logger.getLogger(SpecimenTypeDesignationTest.class);
35 33

  
36 34
	private SpecimenTypeDesignation term1 = null;
37 35
	private SpecimenTypeDesignation term2 = null;
38 36

  
39
	@BeforeClass
40
	public static void setUpBeforeClass() {
41
		DefaultTermInitializer vocabularyStore = new DefaultTermInitializer();
42
		vocabularyStore.initialize();
43
	}
44

  
45 37
	@Before
46 38
	public void setUp() {
47 39
		term1 = new SpecimenTypeDesignation();
......
89 81
        BeanUtils.getPropertyDescriptors(NomenclaturalStatusType.class);
90 82
        BeanUtils.getPropertyDescriptors(Rank.class);
91 83
    }
92

  
93

  
94
}
84
}

Also available in: Unified diff