import static org.junit.Assert.assertEquals;\r
import static org.junit.Assert.assertNotNull;\r
\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+import java.util.UUID;\r
+\r
import org.junit.Ignore;\r
import org.junit.Test;\r
+import org.unitils.dbunit.annotation.DataSet;\r
import org.unitils.spring.annotation.SpringApplicationContext;\r
import org.unitils.spring.annotation.SpringBeanByType;\r
\r
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;\r
import eu.etaxonomy.cdm.model.common.Language;\r
+import eu.etaxonomy.cdm.model.name.Rank;\r
import eu.etaxonomy.cdm.test.integration.CdmIntegrationTest;\r
\r
-@Ignore\r
@SpringApplicationContext("classpath:eu/etaxonomy/cdm/applicationContext-testPersistentDataSource.xml")\r
public class PersistentTermInitializerTest extends CdmIntegrationTest {\r
\r
@SpringBeanByType\r
private PersistentTermInitializer persistentTermInitializer;\r
\r
+ @Ignore\r
@Test\r
public void testInit() {\r
assertNotNull("TermInitializer should exist",persistentTermInitializer);\r
assertNotNull("TermInitializer should have initialized Language.DEFAULT",Language.DEFAULT());\r
assertEquals("Language.DEFAULT should equal Language.ENGLISH",Language.DEFAULT(),Language.ENGLISH());\r
}\r
+ \r
+ @Test\r
+ @DataSet("TermsDataSet.xml")\r
+ public void testFirstPass() {\r
+ Map<UUID, DefinedTermBase> persistedTerms = new HashMap<UUID, DefinedTermBase>();\r
+ persistentTermInitializer.firstPass(Rank.class, persistedTerms);\r
+ }\r
+\r
+ @Test\r
+ public void testPrintData() {\r
+ printDataSet(System.out);\r
+ }\r
+ \r
}\r