diff options
author | Tobrun <tobrun@mapbox.com> | 2017-04-11 00:44:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-11 00:44:18 +0200 |
commit | d7f9378bca4bb6b4a6b3871b0e42961cae6a847b (patch) | |
tree | 0f4b8cf12c2b371ae558557fa341c3960d72c2f7 /platform/android/MapboxGLAndroidSDKTestApp/src | |
parent | 6b29b2bde6048669eaa7ad79446915d2e34c4233 (diff) | |
download | qtlocation-mapboxgl-d7f9378bca4bb6b4a6b3871b0e42961cae6a847b.tar.gz |
[android] - avoid nullpointer by validating Mapbox.java creation when validating accessTokens. (#8680)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/MapboxTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/MapboxTest.java b/platform/android/MapboxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/MapboxTest.java index 0c1f28515d..6ee5c157b9 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/MapboxTest.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/MapboxTest.java @@ -4,7 +4,7 @@ import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; -import com.mapbox.mapboxsdk.exceptions.InvalidAccessTokenException; +import com.mapbox.mapboxsdk.exceptions.MapboxConfigurationException; import org.junit.Before; import org.junit.Test; @@ -39,7 +39,7 @@ public class MapboxTest { assertSame(accessToken, Mapbox.getAccessToken()); } - @Test(expected = InvalidAccessTokenException.class) + @Test(expected = MapboxConfigurationException.class) public void testGetInvalidAccessToken() { final String accessToken = "dummy"; injectMapboxSingleton(accessToken); |