Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.impl / src / test / java / org / gvsig / exportto / swing / impl / ExporttoSwingManagerTest.java @ 40087

History | View | Annotate | Download (3.92 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.exportto.swing.impl;
23

    
24
//import org.gvsig.exportto.ExporttoLocator;
25
//import org.gvsig.exportto.ExporttoManager;
26
//import org.gvsig.exportto.swing.ExporttoSwingLocator;
27
//import org.gvsig.exportto.swing.ExporttoSwingManager;
28
//import org.gvsig.exportto.swing.ExporttoWindowManager;
29
//import org.gvsig.exportto.swing.JExporttoServicePanel;
30
//import org.gvsig.fmap.crs.CRSFactory;
31
//import org.gvsig.fmap.dal.DALLocator;
32
//import org.gvsig.fmap.dal.DataManager;
33
//import org.gvsig.fmap.dal.DataStoreParameters;
34
//import org.gvsig.fmap.dal.exception.InitializeException;
35
//import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
36
//import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
37
//import org.gvsig.fmap.dal.feature.FeatureStore;
38
//import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
39
//import org.gvsig.tools.service.ServiceException;
40
//import org.gvsig.tools.swing.api.ToolsSwingLocator;
41
//import org.gvsig.tools.swing.impl.dynobject.DefaultDynObjectSwingManager;
42

    
43
/**
44
 * API compatibility tests for {@link ExporttoSwingManager} implementations.
45
 * 
46
 * @author gvSIG Team
47
 * @version $Id$
48
 */
49
public abstract class ExporttoSwingManagerTest {
50
//extends AbstractLibraryAutoInitTestCase {
51
//
52
//    protected ExporttoManager manager;
53
//    protected ExporttoSwingManager swingManager;
54
//    protected DataManager dataManager = null;
55
//
56
//    @Override
57
//    protected void doSetUp() throws Exception {
58
//        
59
//        // A Class or Factory has not been registered for the reference
60
//        // Tools.dynobject.swing.manager in the Locator Tools.swing.locator
61
//        ToolsSwingLocator.registerDynObjectSwingManager(
62
//            DefaultDynObjectSwingManager.class);
63
//
64
//        manager = ExporttoLocator.getManager();
65
//        swingManager = ExporttoSwingLocator.getSwingManager();
66
//        dataManager = DALLocator.getDataManager();
67
//        
68
//        IconThemeHelper.registerIcon("export-to", "wizard-export-to", this);
69
//    }
70
//
71
//    public void testGetManager() {
72
//        assertEquals(manager, swingManager.getManager());
73
//    }
74
//
75
//    public void testCreateWindowManager() {
76
//        ExporttoWindowManager windowManager = null;
77
//        swingManager.registerWindowManager(windowManager);
78
//        assertEquals(swingManager.getWindowManager(), windowManager);
79
//    }
80
//
81
//    public void testCreationJExporttoServicePanel() throws ServiceException,
82
//        ValidateDataParametersException, InitializeException,
83
//        ProviderNotRegisteredException {
84
//
85
//        JExporttoServicePanel panel1 =
86
//            swingManager.createExportto(createMemoryFeatureStore(),
87
//                CRSFactory.getCRS("EPSG:4326"));
88
//
89
//        assertNotNull(panel1);
90
//    }
91
//
92
//    private FeatureStore createMemoryFeatureStore() throws InitializeException,
93
//        ProviderNotRegisteredException, ValidateDataParametersException {
94
//        DataStoreParameters memoryParameters =
95
//            dataManager.createStoreParameters("Memory");
96
//        return (FeatureStore) dataManager.openStore("Memory", memoryParameters);
97
//    }
98

    
99
}