package ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.service;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.test.JerseyTest;
import org.junit.Before;

import javax.ws.rs.core.Application;

import static org.junit.Assert.*;

public class ObjectServiceTest extends JerseyTest {

    @Override
    protected Application configure() {
        return new ResourceConfig(FakeObjectService.class);
    }

    @Before
    public void setUp() throws Exception {

    }

}
@@ -63,24 +63,108 @@
 r.service;%0A%0A
+import ge.edu.freeuni.sdp.iot.service.camera_object_recognizer.data.FakeRepository;%0A
 import org.g
@@ -272,16 +272,76 @@
 Before;%0A
+import org.junit.Test;%0A%0Aimport javax.ws.rs.client.WebTarget;
 %0Aimport 
@@ -643,9 +643,1398 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void testGetList_except200emptyList() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetList_except200nonemptyList() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetList_except404wrongHouseId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetObjectById_except200ObjectDo() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetObjectById_except404WrongHouseId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testGetObjectById_except404WrongObjectId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAddObject_except200() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAddObject_except404WrongHouseId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testUpdateObjectById_except200UpdatedObjectDo() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testUpdateObjectById_except404WrongHouseId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testUpdateObjectById_except404WrongObjectId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDeleteObjectById_except200() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDeleteObjectById_except404WrongHouseId() %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testDeleteObjectById_except404WrongObjectId() %7B%0A%0A    %7D%0A%0A    private WebTarget getTarget(String houseId) %7B%0A        String path = String.format(%22/houses/%25s%22, houseId);%0A        return target(path);%0A    %7D%0A%0A    private WebTarget getTarget(String houseId, String objectId) %7B%0A        String path = String.format(%22/houses/%25s/objects/%25s%22, houseId, objectId);%0A        return target(path);%0A    %7D%0A%0A
 %7D

Add stub tests for ObjectService