Skip to content

Commit 205cb94

Browse files
Fix SCM unit tests
1 parent a97d392 commit 205cb94

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/proxy/SystemCapabilityManagerTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ public void testGetAndAddListenerForDisplaysCapability() {
634634

635635

636636
// Test case 1 (capability cached, listener not null, forceUpdate true)
637-
// Force updating DISPLAYS capability should call onError()
638637
internalInterface = mock(ISdl.class);
639638
doAnswer(createOnHMIStatusAnswer(HMILevel.HMI_FULL)).when(internalInterface).addOnRPCListener(eq(FunctionID.ON_HMI_STATUS), any(OnRPCListener.class));
640639
scm = new SystemCapabilityManager(internalInterface);
@@ -644,8 +643,8 @@ public void testGetAndAddListenerForDisplaysCapability() {
644643
retrievedCapability = (DisplayCapabilities) scm.getCapability(SystemCapabilityType.DISPLAYS, onSystemCapabilityListener, true);
645644
assertNotNull(retrievedCapability);
646645
verify(internalInterface, times(0)).sendRPC(any(GetSystemCapability.class));
647-
verify(onSystemCapabilityListener, times(0)).onCapabilityRetrieved(any(Object.class));
648-
verify(onSystemCapabilityListener, times(1)).onError(any(String.class));
646+
verify(onSystemCapabilityListener, times(1)).onCapabilityRetrieved(any(Object.class));
647+
verify(onSystemCapabilityListener, times(0)).onError(any(String.class));
649648

650649

651650
// Test case 2 (Add listener)

0 commit comments

Comments
 (0)