timmy00274672 / AndroidPractice

Example of Learning Android
4 stars 1 forks source link

JUnit for Android #1

Open timmy00274672 opened 10 years ago

timmy00274672 commented 10 years ago

We need to understand how to do JUnit for Android. The biggest difference is that lots of function depends on context(environment). For example, when we want to test the insertOrIgnore() method in StatusData$DbHelper which needs the context object to construct DbHelper, we don't know how to initialize this environment in JUnit class.

timmy00274672 commented 10 years ago

Good job~~ see you tonight

timmy00274672 commented 10 years ago

@csyo You still need to dig it.