Revision 4dbcb616
Added by Andreas Müller over 3 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/name/NameTypeDesignationStatusTest.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 | 11 |
import static org.junit.Assert.assertEquals; |
... | ... | |
14 | 13 |
import java.util.UUID; |
15 | 14 |
|
16 | 15 |
import org.apache.log4j.Logger; |
17 |
import org.junit.BeforeClass; |
|
18 | 16 |
import org.junit.Test; |
19 | 17 |
|
20 |
import eu.etaxonomy.cdm.model.term.DefaultTermInitializer; |
|
21 | 18 |
import eu.etaxonomy.cdm.test.unit.EntityTestBase; |
22 | 19 |
|
23 | 20 |
/** |
... | ... | |
38 | 35 |
private static final UUID uuidSubsequentDesignation = UUID.fromString("3e449e7d-a03c-4431-a7d3-aa258406f6b2"); |
39 | 36 |
private static final UUID uuidTautonymy = UUID.fromString("84521f09-3e10-43f5-aa6f-2173a55a6790"); |
40 | 37 |
|
41 |
@BeforeClass |
|
42 |
public static void setUp() { |
|
43 |
DefaultTermInitializer vocabularyStore = new DefaultTermInitializer(); |
|
44 |
vocabularyStore.initialize(); |
|
45 |
} |
|
46 |
|
|
47 | 38 |
@Test |
48 | 39 |
public void testNameTypeDesignationStatusStringString() { |
49 | 40 |
NameTypeDesignationStatus term = new NameTypeDesignationStatus("term", "label", null); |
... | ... | |
89 | 80 |
public void testTAUTONOMY() { |
90 | 81 |
assertEquals(uuidTautonymy, NameTypeDesignationStatus.TAUTONYMY().getUuid()); |
91 | 82 |
} |
92 |
|
|
93 |
} |
|
83 |
} |
Also available in: Unified diff
cleanup and use TermTestBase for model tests