I have a test class as follows. The methods setUp() and tearDown() run before and after each test case. However, I want these methods to run once in the begiing of the test suite and in the end. I could not find an aotation like @BeforeClass, @AfterClass. How can I make these methods to run before the first test case and after the last test case in a test class?
protected void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
protected void tearDown() throws Exception {
solo.finishOpenedActivities();
super.tearDown();
}
public void test1{
do smt
}
public void test2{
do smt
}
