@@ -0,0 +1,2061 @@
+package ru.job4j;%0A%0Aimport java.util.*;%0Aimport org.junit.Test;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**.%0A* Chapter_003%0A* Task 3.1.2%0A* Test check time for other collection%0A*%0A* @author Anton Vasilyuk%0A* @version 1.0%0A* @since 0.1%0A*/%0Apublic class CheckTimeTest %7B%0A%0A%09/**.%0A%09* Test time for add element%0A%09*/%0A%09@Test%0A%09public void whenNeedCheckTimeAddElementThenLookTime() %7B%0A%0A%09%09CheckTime checkTime = new CheckTime();%0A%0A%09%09List%3CString%3E wordsLink = new LinkedList%3C%3E();%0A%09%09List%3CString%3E wordsArray = new ArrayList%3C%3E();%0A%09%09Set%3CString%3E wordsTree = new TreeSet%3C%3E();%0A%0A%09%09String line = %22a%22;%0A%09%09int amount = 10000;%0A%0A%09%09long timeOperationLink = checkTime.add(wordsLink, line, amount);%0A%09%09long timeOperationArray = checkTime.add(wordsArray, line, amount);%0A%09%09long timeOperationTree = checkTime.add(wordsTree, line, amount);%0A%0A%09%09System.out.println(timeOperationLink);%0A%09%09System.out.println(timeOperationArray);%0A%09%09System.out.println(timeOperationTree);%0A%0A%09%09boolean fact = false;%0A%09%09if (timeOperationLink %3E 0 && timeOperationArray %3E 0 && timeOperationTree %3E 0) %7Bfact = true;%7D%0A%09%09boolean expected = true;%0A%0A%09%09assertThat(fact, is(expected));%0A%09%7D%0A%0A%09/**.%0A%09 * Test time for add element%0A%09 */%0A%09@Test%0A%09public void whenNeedCheckTimeDeleteElementThenLookTime() %7B%0A%0A%09%09CheckTime checkTime = new CheckTime();%0A%0A%09%09List%3CString%3E wordsLink = new LinkedList%3C%3E();%0A%09%09List%3CString%3E wordsArray = new ArrayList%3C%3E();%0A%09%09Set%3CString%3E wordsTree = new TreeSet%3C%3E();%0A%0A%09%09String line = %22a%22;%0A%09%09int amount = 10000;%0A%0A%09%09checkTime.add(wordsLink, line, amount);%0A%09%09long timeOperationLink = checkTime.delete(wordsLink, amount);%0A%09%09checkTime.add(wordsArray, line, amount);%0A%09%09long timeOperationArray = checkTime.delete(wordsArray, amount);%0A%09%09checkTime.add(wordsTree, line, amount);%0A%09%09long timeOperationTree = checkTime.delete(wordsTree, amount);%0A%0A%09%09System.out.println(timeOperationLink);%0A%09%09System.out.println(timeOperationArray);%0A%09%09System.out.println(timeOperationTree);%0A%0A%09%09boolean fact = false;%0A%09%09if (timeOperationLink %3E 0) %7Bfact = true;%7D%0A%09%09boolean expected = true;%0A%0A%09%09assertThat(fact, is(expected));%0A%09%7D%0A%7D

add file for chapter_003_3.1.3