Revision 36351
branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/shp/Bug15642Test.java | ||
---|---|---|
43 | 43 |
import org.gvsig.fmap.geom.operation.fromjts.FromJTS; |
44 | 44 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
45 | 45 |
|
46 |
|
|
47 | 46 |
/** |
47 |
* Code to test bug gvsig-desktop#15642. This is based on the code provided by |
|
48 |
* the bug reporter (see ticket), thanks to him!! |
|
49 |
* |
|
48 | 50 |
* @author gvSIG Team |
49 | 51 |
* @version $Id$ |
50 | 52 |
*/ |
branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/shp/Bug15643Test.java | ||
---|---|---|
47 | 47 |
import org.gvsig.tools.visitor.Visitor; |
48 | 48 |
|
49 | 49 |
/** |
50 |
* Code to test bug gvsig-desktop#15643. This is based on the code provided by |
|
51 |
* the bug reporter (see ticket), thanks to him!! |
|
52 |
* |
|
50 | 53 |
* @author gvSIG Team |
51 | 54 |
* @version $Id$ |
52 | 55 |
*/ |
... | ... | |
105 | 108 |
store = (FeatureStore) manager.openStore("Shape", destParams); |
106 | 109 |
|
107 | 110 |
store.accept(new Visitor() { |
108 |
|
|
109 |
public void visit(Object obj) throws VisitCanceledException, BaseException { |
|
111 |
|
|
112 |
public void visit(Object obj) throws VisitCanceledException, |
|
113 |
BaseException { |
|
110 | 114 |
Feature feature = (Feature) obj; |
111 | 115 |
assertEquals(34.0f, feature.getFloat("float")); |
112 | 116 |
assertEquals(34.0d, feature.getDouble("double")); |
... | ... | |
114 | 118 |
assertEquals(34l, feature.getLong("long")); |
115 | 119 |
} |
116 | 120 |
}); |
117 |
|
|
121 |
|
|
118 | 122 |
} |
119 | 123 |
|
120 | 124 |
} |
Also available in: Unified diff