package de.retest.recheck;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.Test;

public class TestCaseFinderJunitVintageTest {

	@Test
	public void junit_vintage_test_cases_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( getClass().getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_test_cases_should_be_found" );
	}

}

package de.retest.recheck;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class TestCaseFinderJunitVintageTest {

	@Test
	public void junit_vintage_test_annotation_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( getClass().getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_test_annotation_should_be_found" );
	}

	@Before
	public void junit_vintage_before_annotation_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( getClass().getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_before_annotation_should_be_found" );
	}

	@After
	public void junit_vintage_after_annotation_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( getClass().getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_after_annotation_should_be_found" );
	}

	@BeforeClass
	public static void junit_vintage_before_class_annotation_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( TestCaseFinderJunitVintageTest.class.getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_before_class_annotation_should_be_found" );
	}

	@AfterClass
	public static void junit_vintage_after_class_annotation_should_be_found() throws Exception {
		final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();
		assertThat( element.getClassName() ).isEqualTo( TestCaseFinderJunitVintageTest.class.getName() );
		assertThat( element.getMethodName() ).isEqualTo( "junit_vintage_after_class_annotation_should_be_found" );
	}

}

Test all JUnit vintage annotations from TestCaseFinder
Test all JUnit vintage annotations from TestCaseFinder
