|
65 | 65 | import static org.junit.Assert.fail; |
66 | 66 | import static org.mockito.Mockito.mock; |
67 | 67 |
|
68 | | -/** |
69 | | - * |
70 | | - * |
71 | | - * Created by Ephraim Kigamba - ekigamba@ona.io on 05/12/2017. |
72 | | - */ |
73 | 68 | @RunWith(RobolectricTestRunner.class) |
74 | 69 | @Config(manifest = Config.NONE, |
75 | 70 | shadows = { |
|
83 | 78 | }) |
84 | 79 | public class MapboxOfflineDownloaderServiceTest { |
85 | 80 |
|
86 | | - private String mapName = UUID.randomUUID().toString(); |
| 81 | + private final String mapName = UUID.randomUUID().toString(); |
87 | 82 | private static final String TAG = MapboxOfflineDownloaderServiceTest.class.getSimpleName(); |
88 | 83 |
|
89 | 84 | private Context context; |
90 | 85 | private MapboxOfflineDownloaderService mapboxOfflineDownloaderService; |
91 | 86 |
|
92 | | - private String sampleValidMapboxStyleURL = "mapbox://styles/ona/90kiosdcIJ3d"; |
| 87 | + private final String sampleValidMapboxStyleURL = "mapbox://styles/ona/90kiosdcIJ3d"; |
93 | 88 | private String mapboxAccessToken; |
94 | | - private float minZoom = 22; |
95 | | - private float maxZoom = 10; |
96 | | - private LatLng topLeftBound = new LatLng(9.1, 9.1); |
97 | | - private LatLng topRightBound = new LatLng(9.1, 20.5); |
98 | | - private LatLng bottomRightBound = new LatLng(1.1, 20.5); |
99 | | - private LatLng bottomLeftBound = new LatLng(9.1, 1.1); |
| 89 | + private final float minZoom = 22; |
| 90 | + private final float maxZoom = 10; |
| 91 | + private final LatLng topLeftBound = new LatLng(9.1, 9.1); |
| 92 | + private final LatLng topRightBound = new LatLng(9.1, 20.5); |
| 93 | + private final LatLng bottomRightBound = new LatLng(1.1, 20.5); |
| 94 | + private final LatLng bottomLeftBound = new LatLng(9.1, 1.1); |
100 | 95 |
|
101 | 96 | private CountDownLatch latch; |
102 | | - private ArrayList<Object> resultsToCheck = new ArrayList<>(); |
| 97 | + private final ArrayList<Object> resultsToCheck = new ArrayList<>(); |
103 | 98 |
|
104 | 99 | @Before |
105 | 100 | public void setUp() throws Exception { |
|
0 commit comments