Revision 19975 trunk/libraries/libDataSourceDBBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/db/jdbc/postgresql/postgresqlTest.java
postgresqlTest.java | ||
---|---|---|
5 | 5 |
|
6 | 6 |
import org.gvsig.data.DataManager; |
7 | 7 |
import org.gvsig.data.datastores.vectorial.db.jdbc.JDBCTest; |
8 |
import org.gvsig.data.exception.CloseException; |
|
8 | 9 |
import org.gvsig.data.exception.InitializeException; |
9 | 10 |
import org.gvsig.data.exception.ReadException; |
10 | 11 |
import org.gvsig.data.vectorial.IFeatureCollection; |
... | ... | |
23 | 24 |
private static String DS_NAME = PostgresqlStore.DATASTORE_NAME; |
24 | 25 |
|
25 | 26 |
|
26 |
public void testSimpleIteration(){
|
|
27 |
public void test1(){
|
|
27 | 28 |
Register.selfRegister(); |
28 | 29 |
DataManager manager = DataManager.getManager(); |
29 | 30 |
|
... | ... | |
96 | 97 |
} |
97 | 98 |
assertEquals(count, i); |
98 | 99 |
|
100 |
fc.dispose(); |
|
99 | 101 |
|
102 |
try { |
|
103 |
fs.close(); |
|
104 |
} catch (CloseException e) { |
|
105 |
e.printStackTrace(); |
|
106 |
fail("Exception: "+e); |
|
107 |
} |
|
108 |
try { |
|
109 |
fs.dispose(); |
|
110 |
} catch (CloseException e) { |
|
111 |
// TODO Auto-generated catch block |
|
112 |
e.printStackTrace(); |
|
113 |
} |
|
114 |
|
|
115 |
|
|
100 | 116 |
} |
101 | 117 |
|
102 | 118 |
} |
Also available in: Unified diff