2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.io
.sdd
.out
;
12 import static org
.junit
.Assert
.assertEquals
;
13 import static org
.junit
.Assert
.assertNotNull
;
17 import org
.junit
.Before
;
18 import org
.junit
.Test
;
19 import org
.unitils
.spring
.annotation
.SpringBeanByType
;
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
.io
.sdd
.out
.SDDCdmExporter
;
26 import eu
.etaxonomy
.cdm
.test
.integration
.CdmTransactionalIntegrationTest
;
32 public class SDDCdmExporterTest
extends CdmTransactionalIntegrationTest
{
35 SDDCdmExporter sddCdmExporter
;
38 INameService nameService
;
40 private IExportConfigurator exportConfigurator
;
46 ICdmDataSource source
= null;
47 //exportConfigurator = SDDExportConfigurator.NewInstance(source, url, null);
51 public void testInit() {
52 assertNotNull("sddCdmExporter should not be null", sddCdmExporter
);
53 assertNotNull("nameService should not be null", nameService
);
57 public void testDoInvoke() {
58 //sddCdmExporter.doInvoke(exportConfigurator, null);
59 //assertEquals("Number of TaxonNames should be 1", 1, nameService.count());