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/NameTypeDesignationTest.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;
16 14

  
17 15
import org.apache.log4j.Logger;
18 16
import org.junit.Before;
19
import org.junit.BeforeClass;
20 17
import org.junit.Test;
21 18

  
22
import eu.etaxonomy.cdm.model.term.DefaultTermInitializer;
19
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
23 20

  
24 21
/**
25 22
 * @author a.babadshanjan
26 23
 * @since 19.05.2009
27
 * @version 1.0
28 24
 */
29
public class NameTypeDesignationTest {
30
	@SuppressWarnings("unused")
31
	private static final Logger logger = Logger
32
			.getLogger(NameTypeDesignationTest.class);
25
public class NameTypeDesignationTest extends EntityTestBase {
26

  
27
    @SuppressWarnings("unused")
28
	private static final Logger logger = Logger.getLogger(NameTypeDesignationTest.class);
33 29

  
34 30
	private NameTypeDesignation term1 = null;
35 31
	private NameTypeDesignation term2 = null;
36 32

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

  
43 33
	@Before
44 34
	public void setUp() {
45 35
		term1 = new NameTypeDesignation();

Also available in: Unified diff