Revision 4dbcb616
Added by Andreas Müller about 3 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/format/taxon/TaxonRelationshipFormatterTest.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.junit.Assert; |
14 | 14 |
import org.junit.Before; |
15 |
import org.junit.BeforeClass; |
|
16 | 15 |
import org.junit.Test; |
17 | 16 |
|
18 |
import eu.etaxonomy.cdm.format.taxon.TaxonRelationshipFormatter; |
|
19 | 17 |
import eu.etaxonomy.cdm.model.agent.Person; |
20 | 18 |
import eu.etaxonomy.cdm.model.agent.Team; |
21 | 19 |
import eu.etaxonomy.cdm.model.common.Language; |
... | ... | |
28 | 26 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
29 | 27 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
30 | 28 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
31 |
import eu.etaxonomy.cdm.model.term.DefaultTermInitializer; |
|
32 | 29 |
import eu.etaxonomy.cdm.strategy.cache.TaggedCacheHelper; |
33 | 30 |
import eu.etaxonomy.cdm.strategy.cache.TaggedText; |
31 |
import eu.etaxonomy.cdm.test.TermTestBase; |
|
34 | 32 |
|
35 | 33 |
/** |
36 | 34 |
* Test to test the {@link TaxonRelationshipFormatter}. |
... | ... | |
38 | 36 |
* @author a.mueller |
39 | 37 |
* @since 14.08.2018 |
40 | 38 |
*/ |
41 |
public class TaxonRelationshipFormatterTest { |
|
39 |
public class TaxonRelationshipFormatterTest extends TermTestBase{
|
|
42 | 40 |
|
43 | 41 |
private static boolean WITHOUT_NAME = true; |
44 | 42 |
|
... | ... | |
62 | 60 |
private Person toSecAuthor; |
63 | 61 |
private List<Language> languages; |
64 | 62 |
|
65 |
@BeforeClass |
|
66 |
public static void setUpBeforeClass() throws Exception { |
|
67 |
if (Language.DEFAULT() == null){ |
|
68 |
new DefaultTermInitializer().initialize(); |
|
69 |
} |
|
70 |
} |
|
71 |
|
|
72 | 63 |
@Before |
73 | 64 |
public void setUp() throws Exception { |
74 | 65 |
fromName = TaxonNameFactory.NewBotanicalInstance(Rank.SPECIES()); |
Also available in: Unified diff
cleanup and use TermTestBase for model tests