Settings: Change an assert in test
Avoid isEqualsTo for a self-equality test. Bug: 73797873 Test: m javac-check RUN_ERROR_PRONE=true Test: m RunSettingsRoboTests Change-Id: I6f0398b4518d6c967c8cfea38b5c075304b5f368
This commit is contained in:
@@ -47,7 +47,8 @@ public class AppFilterItemTest {
|
||||
R.string.filter_all_apps);
|
||||
|
||||
// Same instance, should be same
|
||||
assertThat(item).isEqualTo(item);
|
||||
// (Use isTrue as isEqualsTo will prioritize reference equality!)
|
||||
assertThat(item.equals(item)).isTrue();
|
||||
|
||||
// Same content, should be same
|
||||
assertThat(item).isEqualTo(item2);
|
||||
|
Reference in New Issue
Block a user