pivotal/robolectric — pull request #309 by dziobas (2012-09-03 14:55:16+00:00)
Title: Support for SQLiteDatabase insertOrThrow, replaceOrThrow

`insert` returns now new id or -1 on exception.
`insertOrThrow` returns inserted id or throws exception.
Similar with `replace` and `replaceOrThrow`. Now they're working as supposed.

I removed `setThrowOnInsert` which was used to emulate `insertOrThrow`. I think it's useless in this case.