package ru.napadovskiuB;

import org.junit.Test;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

/**
 *
 */
public class SimpleMapTest {

    /**
     *
     */
    @Test
    public void whenInsertThenReturnValue() {
        SimpleMap<Integer, String> myMap = new SimpleMap<>();

        myMap.insert(5, "Пятый");
        myMap.insert(4, "Четвертый");
        myMap.insert(2, "Второй");

        String checkValue = myMap.get(4);

        assertThat(checkValue, is("Четвертый"));

    }


    /**
     *
     */
    @Test (expected = NullPointerException.class)
    public void whenDeleteItemThenReturnNull() {
        SimpleMap<Integer, String> myMap = new SimpleMap<>();

        myMap.insert(5, "Пятый");
        myMap.insert(4, "Четвертый");
        myMap.insert(2, "Второй");


        myMap.delete(4);
        String checkValue = myMap.get(4);

    }

}
@@ -310,32 +310,145 @@
 w SimpleMap%3C%3E();
+%0A        final Integer fifthElem = 5;%0A        final Integer fourthElem = 4;%0A        final Integer secondElem = 2;
 %0A%0A        myMap.
@@ -446,33 +446,41 @@
    myMap.insert(
-5
+fifthElem
 , %22%D0%9F%D1%8F%D1%82%D1%8B%D0%B9%22);%0A    
@@ -488,33 +488,42 @@
    myMap.insert(
-4
+fourthElem
 , %22%D0%A7%D0%B5%D1%82%D0%B2%D0%B5%D1%80%D1%82%D1%8B%D0%B9%22);%0A
@@ -535,33 +535,42 @@
    myMap.insert(
-2
+secondElem
 , %22%D0%92%D1%82%D0%BE%D1%80%D0%BE%D0%B9%22);%0A%0A  
@@ -597,33 +597,42 @@
 lue = myMap.get(
-4
+fourthElem
 );%0A%0A        asse
@@ -861,16 +861,130 @@
 ap%3C%3E();%0A
+        final Integer fifthElem = 5;%0A        final Integer fourthElem = 4;%0A        final Integer secondElem = 2;%0A%0A
 %0A       
@@ -997,17 +997,25 @@
 .insert(
-5
+fifthElem
 , %22%D0%9F%D1%8F%D1%82%D1%8B%D0%B9
@@ -1039,17 +1039,26 @@
 .insert(
-4
+fourthElem
 , %22%D0%A7%D0%B5%D1%82%D0%B2%D0%B5
@@ -1086,17 +1086,26 @@
 .insert(
-2
+secondElem
 , %22%D0%92%D1%82%D0%BE%D1%80%D0%BE
@@ -1132,17 +1132,26 @@
 .delete(
-4
+fourthElem
 );%0A     
@@ -1183,17 +1183,26 @@
 Map.get(
-4
+fourthElem
 );%0A%0A    

fix some checkStyle problem