Skip to content

Commit 40f79a0

Browse files
committed
Fix test
1 parent 92d01bf commit 40f79a0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/lockscreen/LockScreenDeviceIconManagerTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void tearDown() throws Exception {
4141
super.tearDown();
4242
}
4343

44-
public void testRetrieveIconShouldCallOnErrorAndOnImageRetrievedWithNullWhenGivenURLThatCannotDownloadAndIconIsNotCached() {
44+
public void testRetrieveIconShouldCallOnErrorTwiceWhenGivenURLThatCannotDownloadAndIconIsNotCached() {
4545
final SharedPreferences sharedPrefs = Mockito.mock(SharedPreferences.class);
4646
final Context context = Mockito.mock(Context.class);
4747
final LockScreenDeviceIconManager.OnIconRetrievedListener listener = Mockito.mock(LockScreenDeviceIconManager.OnIconRetrievedListener.class);
@@ -51,8 +51,7 @@ public void testRetrieveIconShouldCallOnErrorAndOnImageRetrievedWithNullWhenGive
5151

5252
lockScreenDeviceIconManager = new LockScreenDeviceIconManager(context);
5353
lockScreenDeviceIconManager.retrieveIcon("", listener);
54-
verify(listener, times(1)).onError(anyString());
55-
verify(listener, times(1)).onImageRetrieved(null);
54+
verify(listener, times(2)).onError(anyString());
5655
}
5756

5857
public void testRetrieveIconShouldCallOnImageOnImageRetrievedWithIconWhenIconUpdateTimeIsNullFromSharedPref() {

0 commit comments

Comments
 (0)