خرید بک لینک

Vote count: 0

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
    }

asked 43 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 28 فروردين 1395 ساعت: 13:28

صفحه بندی