I have a test class in java and there are several methods annotated by @Test in it, somehow, i want to Junit run method A before method B when i run the whole tests. Is it p
If it's only two methods then you'd need to wrap it in a single unit test that truly isn't order-dependent.
@Test public void testInOrder() throws Exception { testA(); testB(); }