Minor unit test tweak

pull/14/head
Sam Bosley 12 years ago
parent 4427ee3093
commit 4e05e74be0

@ -102,7 +102,8 @@ public class Astrid44MigrationTest extends NewSyncTestCase {
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
instance.clear();
instance.readPropertiesFromCursor(cursor);
if (instance.getValue(RemoteModel.REMOTE_ID_PROPERTY) == 0) {
Long remoteId = instance.getValue(RemoteModel.REMOTE_ID_PROPERTY);
if (remoteId == null || remoteId == 0) {
fail(instance.getClass().getName() + instance.getId() + " didn't have a remote id");
}
}

Loading…
Cancel
Save