Revision 37780 branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.lib/org.gvsig.exportto.lib.api/src/test/java/org/gvsig/exportto/ExporttoManagerTest.java

View differences:

ExporttoManagerTest.java
41 41

  
42 42
    protected ExporttoManager manager;
43 43
    protected DataManager dataManager = null;
44
    
44

  
45 45
    @Override
46 46
    protected void doSetUp() throws Exception {
47 47
        manager = ExporttoLocator.getManager();
......
49 49
    }
50 50

  
51 51
    /**
52
     * Test for the {@link ExporttoManager#getExporttoService()}
53
     * method.
52
     * Test for the {@link ExporttoManager#getExporttoService()} method.
54 53
     * 
55 54
     * @throws Exception
56 55
     *             if there is any error in the tests
......
61 60
            exportService = createService();
62 61
            assertNotNull(exportService);
63 62
        } catch (ValidateDataParametersException e) {
64
           assertNull(e);
63
            assertNull(e);
65 64
        } catch (DataException e) {
66 65
            assertNull(e);
67
        }       
66
        }
68 67
    }
69
    
70
    protected ExporttoService createService() throws ValidateDataParametersException, DataException{
71
        DataServerExplorerParameters dataServerExplorerParameters = 
68

  
69
    protected ExporttoService createService()
70
        throws ValidateDataParametersException, DataException {
71
        DataServerExplorerParameters dataServerExplorerParameters =
72 72
            dataManager.createServerExplorerParameters("FilesystemExplorer");
73 73
        DataServerExplorer dataServerExplorer =
74
            dataManager.openServerExplorer("FilesystemExplorer", dataServerExplorerParameters);
75
        NewDataStoreParameters newDataStoreParameters = dataServerExplorer.getAddParameters("Shape");      
76
        return manager.getExporttoService(dataServerExplorer, newDataStoreParameters);       
74
            dataManager.openServerExplorer("FilesystemExplorer",
75
                dataServerExplorerParameters);
76
        NewDataStoreParameters newDataStoreParameters =
77
            dataServerExplorer.getAddParameters("Shape");
78
        return manager.getExporttoService(dataServerExplorer,
79
            newDataStoreParameters);
77 80
    }
78 81

  
79 82
}

Also available in: Unified diff