Skip to content Skip to sidebar Skip to footer

Android, Junit And TestPreconditions()

I'm trying to do some tests on my application's database. I only got one activity in my application ('Home') so my test class is public class HomeTest extends ActivityInstrumentati

Solution 1:

  1. The order in which the test are run is not guaranteed to run before other tests, as junit 3 uses reflection to find the tests.

  2. Use the setUp() method, this also assure that your tests run with a fresh database


Post a Comment for "Android, Junit And TestPreconditions()"