TestCase.assertEquals(i, attributesRow.getColumnIndex(columns[i])); int rowType = attributesRow.getRowColumnType(i); Object value = attributesRow.getValue(i);
if (updatedBoolean == null) { updatedBoolean = !((Boolean) attributesRow .getValue(attributesColumn .getIndex())); if (dataType == GeoPackageDataType.DATE || dataType == GeoPackageDataType.DATETIME) { DateConverter converter = DateConverter.converter(dataType); Object value = readRow.getValue(readAttributesColumn .getIndex()); Date date = null; TestCase.assertEquals( updatedLimitedString, readRow.getValue(readAttributesColumn .getIndex())); } else { TestCase.assertEquals( updatedString, readRow.getValue(readAttributesColumn .getIndex())); TestCase.assertEquals( updatedBoolean, readRow.getValue(readAttributesColumn .getIndex())); break; case TINYINT: TestCase.assertEquals(updatedByte, readRow .getValue(readAttributesColumn
attributesRow.getValue(column.getName())); if (column.getDataType() == GeoPackageDataType.BLOB) { byte[] blob1 = (byte[]) queryAttributesRow2 .getValue(column.getName()); byte[] blob2 = (byte[]) copyRow.getValue(column .getName()); if (blob1 == null) { .getValue(column.getName()), copyRow .getValue(column.getName())); if (column.isPrimaryKey()) { TestCase.assertNotSame(queryAttributesRow2 .getValue(column.getName()), queryAttributesRow3.getValue(column .getName())); } else if (column.getDataType() == GeoPackageDataType.BLOB) { byte[] blob1 = (byte[]) queryAttributesRow2 .getValue(column.getName()); byte[] blob2 = (byte[]) queryAttributesRow3 .getValue(column.getName()); if (blob1 == null) { TestCase.assertNull(blob2); .getValue(column.getName()), queryAttributesRow3.getValue(column .getName()));
Object column1Value = attributesRow.getValue(column1 .getName()); Class<?> column1ClassType = column1.getDataType() queryAttributesRow = cursor.getRow(); TestCase.assertEquals(column1Value, queryAttributesRow.getValue(column1.getName())); if (!found) { found = attributesRow.getId() == queryAttributesRow if (column2 != null) { column2Value = attributesRow .getValue(column2.getName()); Class<?> column2ClassType = column2.getDataType() .getClassType(); queryAttributesRow = cursor.getRow(); TestCase.assertEquals(column1Value, queryAttributesRow.getValue(column1.getName())); if (column2 != null) { TestCase.assertEquals(column2Value, queryAttributesRow.getValue(column2 .getName()));
RelatedTablesUtils.populateUserRow(userMappingDao.getTable(), userMappingRow, UserMappingTable.requiredColumns()); String attributesName = attributesRow.getValue(TEXT_COLUMN) .toString(); DublinCoreMetadata.setValue(