Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.db / org.gvsig.fmap.dal.db.jdbc / src / test / java / org / gvsig / fmap / dal / store / jdbc / JDBCTest.java @ 40596

History | View | Annotate | Download (2.32 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.dal.store.jdbc;
25

    
26
import org.gvsig.fmap.dal.DataStoreParameters;
27
import org.gvsig.fmap.dal.exception.DataException;
28
import org.gvsig.fmap.dal.feature.BaseTestFeatureStore;
29

    
30
import com.mysql.jdbc.Driver;
31

    
32
/**
33
 * @author jmvivo
34
 *
35
 */
36
public class JDBCTest extends BaseTestFeatureStore {
37

    
38
        @Override
39
        protected void doSetUp() throws Exception {
40
                // Nothing to do        
41
        }
42

    
43
        public DataStoreParameters getDefaultDataStoreParameters()
44
                        throws DataException {
45
                JDBCStoreParameters parameters = null;
46
                parameters = (JDBCStoreParameters) dataManager
47
                                .createStoreParameters(JDBCStoreProvider.NAME);
48

    
49

    
50
                parameters.setHost("localhost");
51
                parameters.setPort(3306);
52
                parameters.setUser("test");
53
                parameters.setPassword("test");
54
                parameters.setDBName("gis");
55
                parameters.setTable("alfanum");
56
                parameters.setUrl("jdbc:mysql://" + parameters.getHost() + ":"
57
                                + parameters.getPort() + "/" + parameters.getDBName());
58
                parameters.setJDBCDriverClassName(Driver.class.getName());
59

    
60
                return parameters;
61
        }
62

    
63
        /* (non-Javadoc)
64
         * @see org.gvsig.fmap.dal.feature.BaseTestFeatureStore#hasExplorer()
65
         */
66
        @Override
67
        public boolean hasExplorer() {
68
                // TODO Auto-generated method stub
69
                return true;
70
        }
71

    
72
        /* (non-Javadoc)
73
         * @see org.gvsig.fmap.dal.feature.BaseTestFeatureStore#usesResources()
74
         */
75
        @Override
76
        public boolean usesResources() {
77
                // TODO Auto-generated method stub
78
                return true;
79
        }
80

    
81
}