package de.retest.recheck;

import de.retest.recheck.persistence.FileNamer;

public interface FileNamerStrategy {

	public static final String RECHECK_FILE_EXTENSION = ".recheck";
	public static final String RECHECK_FOLDER_NAME = "recheck";

	public FileNamer createFileNamer( String... baseNames );

	default String getTestClassName() {
		final StackTraceElement testMethodStack = TestCaseFinder.findTestCaseMethodInStack();
		if ( testMethodStack != null ) {
			return testMethodStack.getClassName();
		}
		throw new RuntimeException( "Couldn't identify test method in call stack. Use explicit namer!" );
	}

	default String getTestMethodName() {
		final StackTraceElement testMethodStack = TestCaseFinder.findTestCaseMethodInStack();
		if ( testMethodStack != null ) {
			return testMethodStack.getMethodName();
		}
		throw new RuntimeException( "Couldn't identify test method in call stack. Use explicit namer!" );
	}

}

@@ -109,23 +109,16 @@
 egy %7B%0A%0A%09
-public 
 static f
@@ -167,23 +167,16 @@
 heck%22;%0A%09
-public 
 static f
@@ -222,23 +222,16 @@
 eck%22;%0A%0A%09
-public 
 FileName

Remove unnecessary access modifiers