google-developer-training / basic-android-kotlin-compose-training-inventory-app

Apache License 2.0
77 stars 84 forks source link

Read and update data using Room. - assertEquals test failure reason #56

Closed nikgatov closed 1 year ago

nikgatov commented 1 year ago

Codelab with the missing "data" keyword: URL of codelab:

Task: 5, Steps: 0 and 1

Problem: "class Item" is not marked with "data" which causes assertEquals to throw an exception. But, if you have downloaded the starter code from "Read and update data with Room" Codelab, then you good, it does have "data" keyword

Steps to reproduce?

  1. Download the starter code from the previous Codelab
  2. Work on it throughout this Codelab ("Read and update data with Room")
  3. See error when testing your database in Task: 5, Steps: 13, 14

Versions Android Studio version: jiraffe API version of the emulator: Resizable Experimental API 34

err

nikgatov commented 1 year ago

image

sorry, missed that