@@ -0,0 +1,2549 @@
+package ru.matevosyan;%0A%0Aimport org.junit.Test;%0A%0Aimport static junit.framework.TestCase.assertTrue;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertFalse;%0A%0A/**%0A * Test EvenNumber class.%0A * Created on 14.05.2017.%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0A%0Apublic class SimpleArrayTest %7B%0A%0A    /**%0A     * whenAddValueToSimpleArrayThanCheckArraysValue() method created to test %7B@link SimpleArray#add(Object)%7D method.%0A     */%0A%0A    @Test%0A    public void whenAddValueToSimpleArrayThanCheckArraysValue() %7B%0A        SimpleArray%3CString%3E stringSimpleArray = new SimpleArray%3C%3E(2);%0A        String expectedValue = %22firstString%22;%0A%0A        stringSimpleArray.add(%22firstString%22);%0A        stringSimpleArray.add(%22secondString%22);%0A%0A        assertThat(expectedValue, is(stringSimpleArray.getObject()%5B0%5D));%0A    %7D%0A%0A    /**%0A     * whenAddAndGetValueThanCheckGetValue() method created to test %7B@link SimpleArray#get(int)%7D method.%0A     */%0A%0A    @Test%0A    public void whenAddAndGetValueThanCheckGetValue() %7B%0A        SimpleArray%3CString%3E stringSimpleArray = new SimpleArray%3C%3E(1);%0A        String expectedValue = %22firstString%22;%0A%0A        stringSimpleArray.add(%22firstString%22);%0A%0A        assertThat(expectedValue, is(stringSimpleArray.get(0)));%0A    %7D%0A%0A    /**%0A     * whenAddAndUpdateValueThanCheckUpdateValue() method created to test %7B@link SimpleArray#update(Object, Object)%7D.%0A     */%0A%0A    @Test%0A    public void whenAddAndUpdateValueThanCheckUpdateValue() %7B%0A        SimpleArray%3CString%3E stringSimpleArray = new SimpleArray%3C%3E(1);%0A        String expectedValue = %22updateString%22;%0A%0A        stringSimpleArray.add(%22firstString%22);%0A        stringSimpleArray.update(%22firstString%22, %22updateString%22);%0A%0A        assertThat(expectedValue, is(stringSimpleArray.getObject()%5B0%5D));%0A    %7D%0A%0A    /**%0A     * whenAddTwoElementAndDeleteOneThanCheckValue() method created to test %7B@link SimpleArray#delete(Object)%7D method.%0A     */%0A%0A    @Test%0A    public void whenAddTwoElementAndDeleteOneThanCheckValue() %7B%0A        SimpleArray%3CString%3E stringSimpleArray = new SimpleArray%3C%3E(2);%0A        String expectedValue = %22secondString%22;%0A%0A        stringSimpleArray.add(%22firstString%22);%0A        stringSimpleArray.add(%22secondString%22);%0A        stringSimpleArray.delete(%22firstString%22);%0A%0A        assertThat(expectedValue, is(stringSimpleArray.getObject()%5B0%5D));%0A        assertFalse(stringSimpleArray.getObject()%5B0%5D.toString().contains(%22firstString%22));%0A        assertTrue(stringSimpleArray.getObject()%5B0%5D.toString().contains(%22secondString%22));%0A    %7D%0A%0A%7D

add SimpleArrayTest.java