package start;

import moduls.Item;
import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;



/**
 * Created by ${Ruslan} on 20.09.16.
 */
public class TrackerTest {
    Tracker tracker = new Tracker();

    @Test
    public void testAddClient() throws Exception {
        Item item = new Item("Ron", 123, "repair iron");
        assertThat(tracker.addClient(item), is(item));
    }

    @Test
    public void testFindById() throws Exception {

    }

    @Test
    public void testGetAll() throws Exception {
        Item item = new Item("Ron", 123, "repair iron");
        tracker.addClient(item);
    }
}
@@ -550,36 +550,79 @@
  %7B%0A        Item 
+%5B%5D
 item
+stest = new Item%5B3%5D;%0A        itemstest%5B0%5D
  = new Item(%22Ron
@@ -612,33 +612,34 @@
 %5D = new Item(%22Ro
-n
+ma
 %22, 123, %22repair 
@@ -634,32 +634,33 @@
 23, %22repair iron
+s
 %22);%0A        trac
@@ -659,32 +659,288 @@
     
-tracker.addClient(item);
+itemstest%5B1%5D = new Item(%22Ron%22, 12, %22repair iron%22);%0A        itemstest%5B2%5D = new Item(%22Atilla%22, 13, %22repair hairdryer%22);%0A        for (Item itemtest:%0A             itemstest) %7B%0A            tracker.addClient(itemtest);%0A        %7D%0A        assertArrayEquals(tracker.getAll(), itemstest);%0A%0A
 %0A   

test getall done