@@ -0,0 +1,2098 @@
+package ru.job4j.io;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Class SearchFilesTest.%0A *%0A * @author Ponkin Aleksey%0A * @version 1.0.0%0A * @since 28.01.2019.%0A */%0Apublic class SearchFilesTest %7B%0A    private static final String SEPARATOR = File.separator;%0A    private static String tempDir;%0A    private static String tempDirDeep;%0A%0A   @BeforeClass%0A   public static void init() throws IOException %7B%0A       tempDir = System.getProperty(%22java.io.tmpdir%22) + %22io%22;%0A       tempDirDeep = tempDir + SEPARATOR + %22xml%22;%0A       new File(tempDir).mkdir();%0A       new File(tempDirDeep).mkdir();%0A       new File(tempDir + SEPARATOR + %22test.java%22).createNewFile();%0A       new File(tempDir + SEPARATOR + %22test.class%22).createNewFile();%0A       new File(tempDirDeep + SEPARATOR + %22pom.xml%22).createNewFile();%0A   %7D%0A%0A    /**%0A     * Test when search one extension in folder.%0A     * @throws IOException%0A     */%0A    @Test%0A    public void whenSearchOneExtInFolder() throws IOException %7B%0A        List%3CFile%3E foundFile = new SearchFiles().files(tempDirDeep, Arrays.asList(%22xml%22));%0A        assertThat(foundFile.get(0).getName(), is(%22pom.xml%22));%0A    %7D%0A%0A    /**%0A     * Test when search three extension in folder and sub folder.%0A     * @throws IOException%0A     */%0A    @Test%0A    public void whenSearchThreeExtSubFolders() throws IOException %7B%0A        List%3CFile%3E foundFile = new SearchFiles().files(tempDir, Arrays.asList(%22java%22, %22class%22, %22xml%22));%0A        assertThat(foundFile.get(0).getName(), is(%22test.class%22));%0A        assertThat(foundFile.get(1).getName(), is(%22test.java%22));%0A        assertThat(foundFile.get(2).getName(), is(%22pom.xml%22));%0A    %7D%0A%0A    /**%0A     * Test when search then found nothing.%0A     * @throws IOException%0A     */%0A    @Test%0A    public void whenSearchThenFoundNothing() throws IOException %7B%0A        List%3CFile%3E foundFile = new SearchFiles().files(tempDir, Arrays.asList(%22txt%22));%0A        assertTrue(foundFile.isEmpty());%0A    %7D%0A%7D

Add test on SearchFiles.