@@ -0,0 +1,2109 @@
+package de.retest.recheck.review.workers;%0A%0Aimport static de.retest.recheck.configuration.ProjectConfiguration.RECHECK_IGNORE;%0Aimport static de.retest.recheck.configuration.ProjectConfiguration.RECHECK_IGNORE_JSRULES;%0Aimport static de.retest.recheck.configuration.ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER;%0Aimport static de.retest.recheck.configuration.ProjectConfiguration.RETEST_PROJECT_ROOT;%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0A%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.io.TempDir;%0A%0Aimport de.retest.recheck.review.GlobalIgnoreApplier;%0Aimport de.retest.recheck.review.counter.NopCounter;%0Aimport de.retest.recheck.util.junit.jupiter.SystemProperty;%0A%0Aclass LoadShouldIgnoreWorkerTest %7B%0A%0A%09Path defaultIgnoreFile;%0A%0A%09@BeforeEach%0A%09void setUp( @TempDir final Path temp ) throws Exception %7B%0A%09%09final Path configFolder = temp.resolve( RETEST_PROJECT_CONFIG_FOLDER );%0A%09%09Files.createDirectory( configFolder );%0A%0A%09%09final Path jsIgnoreFile = configFolder.resolve( RECHECK_IGNORE_JSRULES );%0A%09%09Files.createFile( jsIgnoreFile );%0A%0A%09%09defaultIgnoreFile = configFolder.resolve( RECHECK_IGNORE );%0A%09%09Files.copy( Paths.get( %22src/main/resources/default-%22 + RECHECK_IGNORE ), defaultIgnoreFile );%0A%0A%09%09System.setProperty( RETEST_PROJECT_ROOT, configFolder.toString() );%0A%09%7D%0A%0A%09@Test%0A%09@SystemProperty( key = RETEST_PROJECT_ROOT )%0A%09void loaded_ignore_file_should_match_default_ignore_file() throws Exception %7B%0A%09%09final LoadShouldIgnoreWorker cut = new LoadShouldIgnoreWorker( NopCounter.getInstance() );%0A%09%09final GlobalIgnoreApplier globalIgnoreApplier = cut.load();%0A%09%09final List%3CString%3E loadedIgnoreFileLines = globalIgnoreApplier.persist().getIgnores().stream() //%0A%09%09%09%09.map( Object::toString ) //%0A%09%09%09%09.collect( Collectors.toList() );%0A%0A%09%09final List%3CString%3E defaultIgnoreFileLines = Files.readAllLines( defaultIgnoreFile );%0A%09%09assertThat( loadedIgnoreFileLines ).isEqualTo( defaultIgnoreFileLines );%0A%09%7D%0A%0A%7D%0A

Add tests that shows the problem