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

Commit e98d3f79 authored by Viesturs Zarins's avatar Viesturs Zarins
Browse files

Fix too agresstive test, ActivityInfo should never be null.

BUG: b/302217521

Change-Id: I80831af8adfc7cb7966213b28ac9e058448f635b
parent 1dbac8d0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -259,8 +259,10 @@ public class ActivityTileTest {
    }

    @Test
    public void isSearchable_noMetadata_isTrue() {
        final Tile tile = new ActivityTile(null, "category");
    public void isSearchable_nullMetadata_isTrue() {
        mActivityInfo.metaData = null;

        final Tile tile = new ActivityTile(mActivityInfo, "category");

        assertThat(tile.isSearchable()).isTrue();
    }