reset password
Author Message
febielgiva
Posts: 11
Posted 00:18 Jun 07, 2016 |

Hello Professor,

I have few Queries regarding HomeWork3

"10pts: Create Uri building/extracting methods in your Contract class: Content Uri for the table itself, Uri for latest reviews, Uri for a specific review by id, Uri for a specific review by title, method for getting review id from a URI, method for getting a title from a Uri."

1.How will you test each method implemented in contract class ? ie to fetch recent movie review, to fetch data when review is given, to fetch data by giving movie title?

2. Do we need to create a Test class or we need to implement this method and give the result in logcat 

 

 

 

msargent
Posts: 519
Posted 07:48 Jun 07, 2016 |

You don't have to write tests for this homework: you can see the data in the UI. If you want to write tests as an aid to yourself, that's fine. You would use the ContentResolver to insert and fetch data using the ContentProvider in your test classes, and compare what you inserted with what you got back.

Last edited by msargent at 07:51 Jun 07, 2016.
febielgiva
Posts: 11
Posted 11:24 Jun 07, 2016 |

Okay professor . Thanks a lot for your response.