Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8e5e217 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

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
parent 87a17d01
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);