Android/Unit Test

From Fundamental Ramen
Jump to navigation Jump to search

Hard to test

  • private and protected method
  • void method
  • change state asynchronizedly
  • one of parameters with resource
  • method in a member object
  • mock method return null and cause NPE