I want to get currently executing test method in @Before
so that I can get the annotation applied on currently executing method.
public class TestCaseExample {
@Before
public void setUp() {
// get current method here.
}
@Test
@MyAnnotation("id")
public void someTest {
// code
}
}