package de.retest.recheck;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;

import org.junit.jupiter.api.Test;

class RecheckOptionsTest {

	@Test
	void should_reuse_file_namer_strategy_for_suite_name() throws Exception {
		final FileNamerStrategy fileNamerStrategy = mock( FileNamerStrategy.class );

		final RecheckOptions cut = RecheckOptions.builder() //
				.fileNamerStrategy( fileNamerStrategy ) //
				.build();

		assertThat( cut.getSuiteName() ).isEqualTo( fileNamerStrategy.getTestClassName() );
	}

	@Test
	void should_use_suite_name_if_set() throws Exception {
		final RecheckOptions cut = RecheckOptions.builder() //
				.suiteName( "bar" ) //
				.build();
		assertThat( cut.getSuiteName() ).isEqualTo( "bar" );
	}

}

@@ -109,20 +109,276 @@
 ito.
-Mockito.mock
+ArgumentMatchers.any;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0Aimport static org.powermock.api.mockito.PowerMockito.mockStatic;%0Aimport static org.powermock.api.support.membermodification.MemberMatcher.method;%0A%0Aimport java.io.File
 ;%0A%0Ai
@@ -397,27 +397,398 @@
 nit.
+Test;%0Aimport org.
 ju
-piter.api.Test;%0A%0A
+nit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport de.retest.recheck.ignore.RecheckIgnoreUtil;%0Aimport de.retest.recheck.persistence.FileNamer;%0A%0A@RunWith( PowerMockRunner.class )%0A@PrepareForTest( RecheckIgnoreUtil.class )%0Apublic 
 clas
@@ -811,32 +811,39 @@
 Test %7B%0A%0A%09@Test%0A%09
+public 
 void should_reus
@@ -906,81 +906,519 @@
 %7B%0A%09%09
-final FileNamerStrategy fileNamerStrategy = mock( FileNamerStrategy.class
+mockStatic( RecheckIgnoreUtil.class );%0A%09%09PowerMockito%0A%09%09%09%09.when( RecheckIgnoreUtil.class,%0A%09%09%09%09%09%09method( RecheckIgnoreUtil.class, %22loadRecheckSuiteIgnore%22, File.class ) )%0A%09%09%09%09.withArguments( any() ).thenReturn( null );%0A%0A%09%09final FileNamerStrategy fileNamerStrategy = mock( FileNamerStrategy.class );%0A%0A%09%09final FileNamer fileNamer = mock( FileNamer.class );%0A%09%09when( fileNamerStrategy.createFileNamer( any() ) ).thenReturn( fileNamer );%0A%09%09when( fileNamerStrategy.getTestClassName() ).thenReturn( %22SOME_SPECIAL_VALUE%22
  );%0A
@@ -1635,16 +1635,23 @@
 %09@Test%0A%09
+public 
 void sho

Fix failing test, reverting test to JUnit 4...