Revision 20855 trunk/libraries/libFMap_dataDB/src-test/org/gvsig/data/datastores/vectorial/db/sde/SDETest.java

View differences:

SDETest.java
1198 1198
			attr.setName("MYDOUBLE");
1199 1199

  
1200 1200
			attr.setType(IFeatureAttributeDescriptor.TYPE_DOUBLE);
1201

  
1202
			attr = new DBAttributeDescriptor();
1203
			attr.loading();
1204
			attr.setName("SHAPE");
1205
			attr.setType(IFeatureAttributeDescriptor.TYPE_GEOMETRY);
1206 1201
			attr.stopLoading();
1207 1202
			ftype.add(attr);
1208
			ftype.setDefaultGeometry(attr.getName());
1209 1203

  
1204

  
1205
//			attr = new DBAttributeDescriptor();
1206
//			attr.loading();
1207
//			attr.setName("SHAPE");
1208
//			attr.setType(IFeatureAttributeDescriptor.TYPE_GEOMETRY);
1209
//			attr.stopLoading();
1210
//			ftype.add(attr);
1211
//			ftype.setDefaultGeometry(attr.getName());
1212

  
1210 1213
			attr.stopLoading();
1211 1214
		} catch (IsNotAttributeSettingException e2) {
1212 1215
			e2.printStackTrace();
1213 1216
			fail();return;
1214 1217
		}
1215
		ftype.add(attr);
1216 1218

  
1219

  
1217 1220
		try {
1218 1221
			explorer.add(newdp);
1219 1222
		} catch (InitializeException e1) {
......
1268 1271
		found = false;
1269 1272
		for(i=0;i<list.length;i++){
1270 1273
			dsaux = (SDEStoreParameters)list[i];
1271
			if (dsaux.getTableName().equals(newdp.getSDEParameters().getTableName())){
1274
			if (dsaux.getTableName().equalsIgnoreCase(newdp.getSDEParameters().getTableName())){
1272 1275
				found=true;
1273 1276
				break;
1274 1277
			}

Also available in: Unified diff