@@ -0,0 +1,2125 @@
+package com.cloudycrew.cloudycar;%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.*;%0A/**%0A * Created by George on 2016-10-12.%0A */%0A%0Apublic class RequestTests %7B%0A    private User user;%0A    private IRequestStore requestStore;%0A    private CreateRequest createRequest;%0A%0A    @Before%0A    public void set_up() %7B%0A        user = new User(%22janedoedoe%22);%0A        createRequest = new CreateRequest(requestStore);%0A    %7D%0A%0A    @Test%0A    public void test_createRequest_thenStoreContainsNewPendingRequest() %7B%0A        Point startingPoint = new Point(48.1472373, 11.5673969);%0A        Point endingPoint = new Point(48.1258551, 11.5121003);%0A%0A        createRequest.create(startingPoint, endingPoint);%0A%0A        Route expectedRoute = new Route();%0A        expectedRoute.addPoint(startingPoint);%0A        expectedRoute.addPoint(endingPoint);%0A%0A        Request expectedRequest = new PendingRequest();%0A        expectedRequest.setUser(user);%0A        expectedRequest.setRoute(expectedRoute);%0A%0A        assertTrue(requestStore.contains(expectedRequest));%0A    %7D%0A%0A    @Test%0A    public void test_getCurrentRequests_ifUserHasNoRequests_thenReturnsAnEmptyList() %7B%0A        List%3CRequest%3E requests = requestStore.getRequests();%0A%0A        assertTrue(requests.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void test_getCurrentRequests_ifUserHasRequests_thenReturnsUsersRequests() %7B%0A        Point startingPoint = new Point(48.1472373, 11.5673969);%0A        Point endingPoint = new Point(48.1258551, 11.5121003);%0A%0A        Route route = new Route();%0A        route.addPoint(startingPoint);%0A        route.addPoint(endingPoint);%0A%0A        Request request1 = new PendingRequest();%0A        request1.setUser(user);%0A        request1.setRoute(route);%0A%0A        Request request2 = new PendingRequest();%0A        request2.setUser(user);%0A        request2.setRoute(route);%0A%0A        List%3CRequest%3E expectedRequests = Arrays.asList(request1, request2);%0A        List%3CRequest%3E actualRequests = requestStore.getRequests();%0A%0A        assertEquals(expectedRequests, actualRequests);%0A    %7D%0A%0A%7D%0A

Implement tests for creating a request, and viewing active requests