package ru.job4j;

/**
 * Created by ANTON on 28.05.2017.
 */
public class UserConvertTest {
}

@@ -16,51 +16,267 @@
 j;%0A%0A
+import java.util.*;%0Aimport org.junit.Test;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A
 /**
+.
 %0A * C
-reated by ANTON on 28.05.2017.
+hapter_003%0A * Task 3.2.2%0A * Test create collection HashMap%0A *%0A * @author Anton Vasilyuk%0A * @version 1.0%0A * @since 0.1
 %0A */%0A
+%0A
 publ
@@ -302,10 +302,859 @@
 tTest %7B%0A
+    /**.%0A     * Method for test method convert from class UserConvert%0A     */%0A    @Test%0A    public void whenIsListUsersThenConvertIsToMap() %7B%0A        UserConvert userconv = new UserConvert();%0A        HashMap%3CInteger, User%3E hashMapUsers = new HashMap%3C%3E();%0A        List%3CUser%3E list = new LinkedList%3C%3E();%0A        User userOne = new User(1, %22Boris%22, %22Moscow%22);%0A        User userTwo = new User(2, %22Ivan%22, %22Novosibirsk%22);%0A        User userThird = new User(3, %22Gregory%22, %22Dacota%22);%0A        list.add(userOne);%0A        list.add(userTwo);%0A        list.add(userThird);%0A        hashMapUsers = userconv.process(list);%0A        boolean fact = false;%0A        boolean expect = true;%0A        if (hashMapUsers.containsKey(1) && hashMapUsers.containsKey(2) && hashMapUsers.containsKey(3)) %7B%0A            fact = true;%0A        %7D%0A        assertThat(fact, is(expect));%0A    %7D%0A
 %7D%0A

add file for chapter_003_3.2.2