package de.retest.recheck.ignore;

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

import java.io.File;
import java.util.List;

import org.junit.jupiter.api.Test;

class SearchFilterFilesTest {
	SearchFilterFiles cut;

	@Test
	void getDefaultFilterFiles_should_get_all_filter_files_from_classpath() {
		final SearchFilterFiles cut = new SearchFilterFiles();
		final List<File> defaultFilterFiles = cut.getDefaultFilterFiles();
		assertThat( defaultFilterFiles ).isNotNull();
		assertThat( defaultFilterFiles ).isNotEmpty();
		assertThat( defaultFilterFiles ).hasSize( 2 );
		assertThat( defaultFilterFiles ).allMatch( file -> file.toString().endsWith( ".filter" ) );
		assertThat( defaultFilterFiles.get( 0 ).getName() ).isEqualTo( "positioning.filter" );
		assertThat( defaultFilterFiles.get( 1 ).getName() ).isEqualTo( "visibility.filter" );
	}
}

@@ -467,370 +467,77 @@
 iles
- ).isNotNull();%0A%09%09assertThat( defaultFilterFiles ).isNotEmpty();%0A%09%09assertThat( defaultFilterFiles ).hasSize( 2 );%0A%09%09assertThat( defaultFilterFiles ).allMatch( file -%3E file.toString().endsWith( %22.filter%22 ) );%0A%09%09assertThat( defaultFilterFiles.get( 0 ).getName() ).isEqualTo( %22positioning.filter%22 );%0A%09%09assertThat( defaultFilterFiles.get( 1 ).getName() ).isEqualTo( 
+.stream().map( File::getName ) ).contains( %22positioning.filter%22,%0A%09%09%09%09
 %22vis

Update the test