@@ -0,0 +1,1609 @@
+package gp.e3.sentinel.domain.repositories;%0A%0Aimport static org.junit.Assert.*;%0Aimport gp.e3.sentinel.domain.entities.Request;%0Aimport gp.e3.sentinel.persistence.daos.RequestDAO;%0Aimport gp.e3.sentinel.util.RequestFactoryForTests;%0A%0Aimport java.sql.Connection;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0A%0Apublic class RequestRepositoryTest %7B%0A%09%0A%09private Connection dbConnectionMock;%0A%09private RequestDAO requestDAOMock;%0A%09private RequestRepository requestRepository;%0A%09%0A%09@Before%0A%09public void setUp() %7B%0A%09%09%0A%09%09dbConnectionMock = Mockito.mock(Connection.class);%0A%09%09requestDAOMock = Mockito.mock(RequestDAO.class);%0A%09%09requestRepository = new RequestRepository(requestDAOMock);%0A%09%7D%0A%09%0A%09@After%0A%09public void tearDown() %7B%0A%09%09%0A%09%09dbConnectionMock = null;%0A%09%09requestDAOMock = null;%0A%09%09requestRepository = null;%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCreateRequest_OK() %7B%0A%09%09%0A%09%09Request request = RequestFactoryForTests.getDefaultRequest();%0A%09%09%0A%09%09long expectedRequestId = 1;%0A%09%09Mockito.when(requestDAOMock.createRequest(dbConnectionMock, request)).thenReturn(expectedRequestId);%0A%09%09long requestId = requestRepository.createRequest(dbConnectionMock, request);%0A%09%09%0A%09%09assertEquals(expectedRequestId, requestId);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCreateRequest_NOK() %7B%0A%09%09%0A%09%09Request request = RequestFactoryForTests.getDefaultRequest();%0A%09%09%0A%09%09long expectedRequestId = 0;%0A%09%09Mockito.when(requestDAOMock.createRequest(dbConnectionMock, request)).thenReturn(expectedRequestId);%0A%09%09long requestId = requestRepository.createRequest(dbConnectionMock, request);%0A%09%09%0A%09%09assertEquals(expectedRequestId, requestId);%0A%09%7D%0A%7D

Add tests for the class RequestRepository.