Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SoftButtonManagerTests test
Update SoftButtonManagerTests.testSoftButtonObjectEquals()
  • Loading branch information
noah-livio committed Jan 20, 2022
commit 528769f4bdfca7a937d435d7fe22ad4761d9d261
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ public void onEvent(SoftButtonObject softButtonObject, OnButtonEvent onButtonEve
softButtonStateList.add(softButtonState1);
softButtonStateList2.add(softButtonState1);
softButtonStateList2.add(softButtonState2);
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, "Hi", null);
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, "Hi", null);
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, softButtonStateList.get(0).getName(), null);
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(0).getName(), null);
assertNotEquals(softButtonObject1, softButtonObject2);

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

// Case 7: SoftButtonObject currentStateName not same, assertFalse
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList, "Hi", null);
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList, "Hi2", null);
softButtonObject1 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(0).getName(), null);
softButtonObject2 = new SoftButtonObject("hi", softButtonStateList2, softButtonStateList2.get(1).getName(), null);
assertNotEquals(softButtonObject1, softButtonObject2);
}

Expand Down