@@ -0,0 +1,1768 @@
+package com.aemreunal.domain.beacon;%0A%0A/*%0A ***************************%0A * Copyright (c) 2014      *%0A *                         *%0A * This code belongs to:   *%0A *                         *%0A * @author Ahmet Emre %C3%9Cnal *%0A * S001974                 *%0A *                         *%0A * aemreunal@gmail.com     *%0A * emre.unal@ozu.edu.tr    *%0A *                         *%0A * aemreunal.com           *%0A ***************************%0A */%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport org.apache.http.HttpStatus;%0Aimport com.aemreunal.domain.EntityGetter;%0Aimport com.jayway.restassured.path.json.JsonPath;%0A%0Apublic class BeaconGetter extends EntityGetter %7B%0A    public static ArrayList%3CBeaconInfo%3E getAllBeacons(String username, Long projectId) %7B%0A        JsonPath responseJson = getEntity(%22/%22 + username + %22/projects/%22 + projectId + %22/beacons%22);%0A        ArrayList%3CBeaconInfo%3E beacons = new ArrayList%3C%3E();%0A        for (HashMap beaconMap : responseJson.getList(%22%22, HashMap.class)) %7B%0A            beacons.add(new BeaconInfo(beaconMap, projectId, username));%0A        %7D%0A        return beacons;%0A    %7D%0A%0A    public static void failToGetAllBeacons(String username, Long projectId) %7B%0A        sendGetRequest(%22/%22 + username + %22/projects/%22 + projectId + %22/beacons%22, HttpStatus.SC_NOT_FOUND);%0A    %7D%0A%0A    public static BeaconInfo getBeacon(String username, Long projectId, Long beaconId) %7B%0A        JsonPath responseJson = getEntity(%22/%22 + username + %22/projects/%22 + projectId + %22/beacons/%22 + beaconId);%0A        return new BeaconInfo(responseJson, projectId, username);%0A    %7D%0A%0A    public static void failToGetBeacon(String username, Long projectId, Long beaconId) %7B%0A        sendGetRequest(%22/%22 + username + %22/projects/%22 + projectId + %22/beacons/%22 + beaconId, HttpStatus.SC_NOT_FOUND);%0A    %7D%0A%7D%0A

Add BeaconGetter