@@ -0,0 +1,1299 @@
+package ru.matevosyan;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%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 */%0A%0Apublic class ZipWithStructureTest %7B%0A%0A    private static String java;%0A    private static String classFormat;%0A    String%5B%5D s = new String%5B%5D%7Bjava, classFormat%7D;%0A    private final static String folder_path_name = %22D:%5C%5Cdir%22;%0A    private static String outZip;%0A%0A    /**%0A     * execute all common variable before start testing class methods, that use anywhere in the class.%0A     * @throws IOException when path to a file is invalid.%0A     */%0A%0A    @BeforeClass%0A    public static void executeSameVariable() throws IOException %7B%0A%0A        outZip = %22D:%5C%5Cdir.zip%22;%0A        java = %22java%22;%0A        classFormat = %22class%22;%0A%0A    %7D%0A%0A    /**%0A     * testing files size.%0A     */%0A%0A    @Test%0A    public void whenAddFileAndSortToAnotherFileThanCheckFileSize() %7B%0A        ZipWithStructure zip = new ZipWithStructure(folder_path_name);%0A%0A        try %7B%0A            zip.genListOfFiles(new File(folder_path_name), s);%0A            zip.zipping(outZip);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%0A%0A%7D

change whenAddFileAndSortToAnotherFileThanCheckFileSize method