fde192bc282b8017cdae9a12633d0d213212dc3a
[cdmlib.git] / cdmlib-io / src / test / java / eu / etaxonomy / cdm / io / sdd / SDDCdmExporterTest.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.io.sdd;
11
12 import static org.junit.Assert.assertEquals;
13 import static org.junit.Assert.assertNotNull;
14
15 import java.net.URL;
16
17 import org.junit.Before;
18 import org.junit.Test;
19 import org.unitils.spring.annotation.SpringBeanByType;
20
21 import eu.etaxonomy.cdm.api.service.INameService;
22 import eu.etaxonomy.cdm.database.ICdmDataSource;
23 import eu.etaxonomy.cdm.io.common.IExportConfigurator;
24 import eu.etaxonomy.cdm.io.common.IImportConfigurator;
25 import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
26 /**
27 * @author a.mueller
28 * @created 02.02.2009
29 * @version 1.0
30 */
31 public class SDDCdmExporterTest extends CdmTransactionalIntegrationTest {
32
33 @SpringBeanByType
34 SDDCdmExporter sddCdmExporter;
35
36 @SpringBeanByType
37 INameService nameService;
38
39 private IExportConfigurator exportConfigurator;
40
41 @Before
42 public void setUp() {
43 String url ="";
44 //FIXME
45 ICdmDataSource source = null;
46 //exportConfigurator = SDDExportConfigurator.NewInstance(source, url, null);
47 }
48
49 @Test
50 public void testInit() {
51 assertNotNull("sddCdmExporter should not be null", sddCdmExporter);
52 assertNotNull("nameService should not be null", nameService);
53 }
54
55 @Test
56 public void testDoInvoke() {
57 //sddCdmExporter.doInvoke(exportConfigurator, null);
58 //assertEquals("Number of TaxonNames should be 1", 1, nameService.count());
59 }
60
61 }