@@ -0,0 +1,2702 @@
+package com.cloudycrew.cloudycar;%0A%0A/**%0A * Created by George on 2016-10-12.%0A */%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.Request;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class SearchingTests %7B%0A    private IRequestStore requestStore;%0A    private ISearchService searchService;%0A%0A    private Request request1;%0A    private Request request2;%0A%0A    @Before%0A    public void set_up() %7B%0A        Point startingPoint1 = new Point(48.1472373, 11.5673969);%0A        Point endingPoint1 = new Point(48.1258551, 11.5121003);%0A%0A        Route route1 = new Route();%0A        route1.addPoint(startingPoint1);%0A        route1.addPoint(endingPoint1);%0A%0A        Point startingPoint2 = new Point(53.5225, 113.6242);%0A        Point endingPoint2 = new Point(53.5232, 113.5263);%0A%0A        Route route2 = new Route();%0A        route2.addPoint(startingPoint2);%0A        route2.addPoint(endingPoint2);%0A%0A        request1 = new PendingRequest();%0A        request1.setId(%22request-1%22);%0A        request1.setRoute(route);%0A%0A        request2 = new PendingRequest();%0A        request2.setId(%22request-2%22);%0A        request2.setRoute(route2);%0A%0A        when(requestStore.getRequests()).thenReturn(Arrays.asList(request1, request2));%0A    %7D%0A%0A    @Test%0A    public void test_searchByGeoLocation_ifThereAreNoMatchingResults_thenReturnsEmptyList() %7B%0A        Point pointFarFromAllRequests = new Point(0, 0);%0A%0A        List%3CRequest%3E searchResults = searchService.searchWithPoint(pointFarFromAllRequests);%0A%0A        assertTrue(searchResults.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void test_searchByGeoLocation_ifThereAreMatchingResults_thenReturnsResults() %7B%0A        Point pointFarFromAllRequests = new Point(48.1472373, 11.5673969);%0A%0A        List%3CRequest%3E expectedSearchResults = Arrays.asList(request1);%0A        List%3CRequest%3E actualSearchResults = searchService.searchWithPoint(pointFarFromAllRequests);%0A%0A        assertEquals(expectedSearchResults, actualSearchResults);%0A    %7D%0A%0A    @Test%0A    public void test_searchByKeyword_ifThereAreNoMatchingResults_thenReturnsEmptyList() %7B%0A        String keyword = %22pacific ocean%22;%0A%0A        List%3CRequest%3E searchResults = searchService.searchWithKeyword(keyword);%0A%0A        assertTrue(searchResults.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void test_searchByKeyword_ifThereAreMatchingResults_thenReturnsResults() %7B%0A        String keyword = %22west edmonton mall%22;%0A%0A        List%3CRequest%3E expectedSearchResults = Arrays.asList(request2);%0A        List%3CRequest%3E actualSearchResults = searchService.searchWithKeyword(pointFarFromAllRequests);%0A%0A        assertEquals(expectedSearchResults, actualSearchResults);%0A    %7D%0A%7D%0A

Implement search tests