kokoichi206 / rhythm_game

Android rhythm game
0 stars 0 forks source link

First Unit Test #44

Closed kokoichi206 closed 2 years ago

kokoichi206 commented 2 years ago

Is your feature request related to a problem? Please describe. First Unit Test

It's toooo late, but I have to and I want to do.

kokoichi206 commented 2 years ago

Basic test

Ref https://www.youtube.com/watch?v=_TR6QcRozAg

kokoichi206 commented 2 years ago

Test on UI Thread

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

Use runOnUiThread or @UiThreadTest annotation

Red https://stackoverflow.com/questions/19427387/difference-between-runonuithread-method-and-uithreadtest-annotation