Skip to content

Commit 528769f

Browse files
committed
Update SoftButtonManagerTests test
Update SoftButtonManagerTests.testSoftButtonObjectEquals()
1 parent 34c0622 commit 528769f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/managers/screen/SoftButtonManagerTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ public void onEvent(SoftButtonObject softButtonObject, OnButtonEvent onButtonEve
351351
softButtonStateList.add(softButtonState1);
352352
softButtonStateList2.add(softButtonState1);
353353
softButtonStateList2.add(softButtonState2);
354-
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, "Hi", null);
355-
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, "Hi", null);
354+
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, softButtonStateList.get(0).getName(), null);
355+
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(0).getName(), null);
356356
assertNotEquals(softButtonObject1, softButtonObject2);
357357

358358
// Case 5: SoftButtonStates are not the same, assertFalse
@@ -366,8 +366,8 @@ public void onEvent(SoftButtonObject softButtonObject, OnButtonEvent onButtonEve
366366
assertNotEquals(softButtonObject1, softButtonObject2);
367367

368368
// Case 7: SoftButtonObject currentStateName not same, assertFalse
369-
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, "Hi", null);
370-
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList, "Hi2", null);
369+
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(0).getName(), null);
370+
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(1).getName(), null);
371371
assertNotEquals(softButtonObject1, softButtonObject2);
372372
}
373373

0 commit comments

Comments
 (0)