Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SQLiteDatabaseTest foreign key test to match Android behavior
SQLiteDatabaseTest.shouldThrowWhenForeignKeysConstraintIsViolated failed if run on a real Android. It expected that a foreign key exception be thrown. In real Android, however, no exception was thrown. Only a message is printed in logcat. Update the test to delete a row that has a reference to another table. This causes an exception in both real Android and Robolectric. Move this to a ctesque test to ensure fidelity with real Android. PiperOrigin-RevId: 386770883
- Loading branch information
Showing
2 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters