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" );
	}

}

@@ -101,374 +101,1998 @@
 nit.
-Test;%0A%0Apublic class TestCaseFinderJunitVintageTest %7B%0A%0A%09@Test%0A%09public void junit_vintage_test_cases_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( getClass().getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_test_cases
+After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Apublic class TestCaseFinderJunitVintageTest %7B%0A%0A%09@Test%0A%09public void junit_vintage_test_annotation_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( getClass().getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_test_annotation_should_be_found%22 );%0A%09%7D%0A%0A%09@Before%0A%09public void junit_vintage_before_annotation_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( getClass().getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_before_annotation_should_be_found%22 );%0A%09%7D%0A%0A%09@After%0A%09public void junit_vintage_after_annotation_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( getClass().getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_after_annotation_should_be_found%22 );%0A%09%7D%0A%0A%09@BeforeClass%0A%09public static void junit_vintage_before_class_annotation_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( TestCaseFinderJunitVintageTest.class.getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_before_class_annotation_should_be_found%22 );%0A%09%7D%0A%0A%09@AfterClass%0A%09public static void junit_vintage_after_class_annotation_should_be_found() throws Exception %7B%0A%09%09final StackTraceElement element = TestCaseFinder.findTestCaseMethodInStack();%0A%09%09assertThat( element.getClassName() ).isEqualTo( TestCaseFinderJunitVintageTest.class.getName() );%0A%09%09assertThat( element.getMethodName() ).isEqualTo( %22junit_vintage_after_class_annotation
 _sho

Test all JUnit vintage annotations from TestCaseFinder