package ru.matevosyan;

import org.junit.BeforeClass;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

/**
 * Created SortFile for testing sort big file and write it to a new file.
 * Created on 19.02.2017.
 * @since 1.0
 * @author Matevosyan Vardan
 * @version 1.0
 */

public class ConsoleChatTest {

    private static String pathSource;
    private static File sourceFile;

    /**
     * execute all common variable before start testing class methods, that use anywhere in the class.
     * @throws IOException when path to a file is invalid.
     */

    @BeforeClass
    public static void executeSameVariable() throws IOException {

        pathSource = "C:\\Users\\Admin\\Desktop\\Abbat.txt";
        sourceFile = new File(pathSource);

    }

    /**
     * testing files size.
     */

    @Test
    public void whenWriteThenGet() {
        ConsoleChat consoleChat = new ConsoleChat(sourceFile);
        consoleChat.readUserData();
    }

}
@@ -317,24 +317,25 @@
 ChatTest %7B%0A%0A
+%0A
     private 
@@ -345,25 +345,23 @@
 tic 
-String pathS
+File s
 ource
+File
 ;%0A  
@@ -374,33 +374,43 @@
 ate static File 
-s
+outPutPathS
 ourceFile;%0A%0A    
@@ -676,16 +676,23 @@
         
+String 
 pathSour
@@ -780,16 +780,157 @@
 urce);%0A%0A
+        String outPutPathSource = %22C:%5C%5CUsers%5C%5CAdmin%5C%5CDesktop%5C%5CAbbatCreated.txt%22;%0A        outPutPathSourceFile = new File(outPutPathSource);%0A%0A
     %7D%0A%0A 
@@ -1079,16 +1079,38 @@
 urceFile
+, outPutPathSourceFile
 );%0A     

change sortArray method