Project

General

Profile

Revision e68e45bd

IDe68e45bdc975083ff2b0781bdc4542293269da1c
Parent ab4c6c12
Child 5b34cfd9

Added by Andreas Müller about 2 months ago

fix DefaultTermInitializerTest in Suite

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/term/DefaultTermInitializerTest.java
12 12
import static org.junit.Assert.assertNull;
13 13

  
14 14
import org.apache.log4j.Logger;
15
import org.junit.Ignore;
15
import org.junit.Assert;
16
import org.junit.BeforeClass;
16 17
import org.junit.Test;
17 18

  
18 19
import eu.etaxonomy.cdm.model.common.Language;
20
import eu.etaxonomy.cdm.model.description.Feature;
21
import eu.etaxonomy.cdm.model.description.MeasurementUnit;
22
import eu.etaxonomy.cdm.model.term.init.TermLoader;
19 23

  
20 24
/**
21 25
 * @author a.mueller
......
25 29
	@SuppressWarnings("unused")
26 30
	private static final Logger logger = Logger.getLogger(DefaultTermInitializerTest.class);
27 31

  
32
    @BeforeClass
33
    public static void setUpBeforeClass() {
34
        TermLoader termLoader = new TermLoader();
35
        termLoader.unloadAllTerms();
36
    }
37

  
28 38
	@Test
29
	@Ignore // does not run yet in a test suite as the Language.DEFAULT() is not null then
30
	public void testInitialize() {
39
	public void testInitialize(){
31 40
		assertNull("At the beginning of the initialization test the default language should still be null but is not", Language.DEFAULT());
32 41
		DefaultTermInitializer initalizer = new DefaultTermInitializer();
33 42
		initalizer.initialize();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)