@@ -0,0 +1,1021 @@
+package ru.matevosyan;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created SortFile for testing sort big file and write it to a new file.%0A * Created on 19.02.2017.%0A * @since 1.0%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0Apublic class SortFileTest %7B%0A    @Test%0A    public void whenAddFileThanSortToAnotherFile() %7B%0A        String pathSource = %22%5C%5C%5C%5CServer2008%5C%5C%D0%BE%D0%B1%D1%89%D0%B8%D0%B5 %D0%B4%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%8B%5C%5C%D0%9F%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9 %D0%BE%D1%82%D0%B4%D0%B5%D0%BB%5C%5CAbbat.txt%22;%0A        String pathDist = %22%5C%5C%5C%5CServer2008%5C%5C%D0%BE%D0%B1%D1%89%D0%B8%D0%B5 %D0%B4%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%8B%5C%5C%D0%9F%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9 %D0%BE%D1%82%D0%B4%D0%B5%D0%BB%5C%5CAbbatResult.txt%22;%0A%0A        File sourceFile = new File(pathSource);%0A        File distFile = new File(pathDist);%0A%0A        SortFile sortFile = new SortFile();%0A%0A        try %7B%0A            sortFile.sort(sourceFile, distFile);%0A        %7D catch (IOException ioe) %7B%0A            System.out.println(ioe.getMessage());%0A        %7D%0A%0A        long l = sourceFile.length();%0A%0A        assertThat(distFile.length(), is(l));%0A    %7D%0A%0A%0A%7D

add sort test