I thought the tearDown()
is supposed to run after each test, but what I see from logs is that it is started just after setUp()
method. Can you guys clarify?
public class LaunchManagerActivityTest extends ActivityInstrumentationTestCase2<LaunchManagerActivity> {
private Solo solo;
public LaunchManagerActivityTest() {
super(LaunchManagerActivity.class);
}
protected void setUp() throws Exception {
super.setUp();
Log.e("Dev", "setup");
solo = new Solo(getInstrumentation(), getActivity());
}
protected void tearDown() throws Exception {
super.tearDown();
Log.e("Dev", "tearDown ");
}
Output:
02-11 11:33:33.095: E/Dev(26779): setup
02-11 11:33:34.395: E/Dev(26779): tearDown
setUp
nortearDown
would be called. – Anemo