MapboxAccountManager refactor, removal deprecated accesstoken (#7462)
* [android] - move object ownership, move depenencies and responsibility. * [android] - MapboxAccountManager refactor, removal deprecated accesstoken.
This commit is contained in:
@@ -177,21 +177,14 @@ public class MapboxMapOptionsTest {
|
||||
|
||||
@Test
|
||||
public void testMyLocationForegroundTint() {
|
||||
assertEquals(Color.BLUE,
|
||||
new MapboxMapOptions().myLocationForegroundTintColor(Color.BLUE).getMyLocationForegroundTintColor());
|
||||
assertEquals(Color.BLUE, new MapboxMapOptions()
|
||||
.myLocationForegroundTintColor(Color.BLUE).getMyLocationForegroundTintColor());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMyLocationBackgroundTint() {
|
||||
assertEquals(Color.BLUE,
|
||||
new MapboxMapOptions().myLocationBackgroundTintColor(Color.BLUE).getMyLocationBackgroundTintColor());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAccessToken() {
|
||||
assertNull(new MapboxMapOptions().getAccessToken());
|
||||
assertEquals("test", new MapboxMapOptions().accessToken("test").getAccessToken());
|
||||
assertNotEquals("nottest", new MapboxMapOptions().accessToken("test").getStyle());
|
||||
assertEquals(Color.BLUE, new MapboxMapOptions()
|
||||
.myLocationBackgroundTintColor(Color.BLUE).getMyLocationBackgroundTintColor());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user