I configured my Room query responses as per the official docs during db layer setup. While writing unit test for the layer, I realised some anomalises in many edge cases.
Following are my findings based on a number of use cases that i tried with insert()
, update()
and delete()
query. We are running all these queries on a very basic table called Task
.
The table schema looks something like this :
/*
* task_table
* id -> String PrimaryKey
* status -> String, Not Null