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

Commit 63190ceb authored by Yuhang Gong's avatar Yuhang Gong Committed by Android (Google) Code Review
Browse files

Merge "Fix test method bug"

parents bba676a6 3fbb9dcd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ public class AppHeaderPreferenceTest {

    @Test
    public void setIsInstantApp_shouldUpdateInstallType() {

        mPreference.onBindViewHolder(mHolder);
        mPreference.setIsInstantApp(true);

@@ -77,8 +76,8 @@ public class AppHeaderPreferenceTest {
    public void setSecondSummary_shouldUpdateSecondSummary() {
        final String defaultTestText = "Test second summary";

        mPreference.onBindViewHolder(mHolder);
        mPreference.setSecondSummary(defaultTestText);
        mPreference.onBindViewHolder(mHolder);

        assertThat(((TextView) mRootView.findViewById(R.id.second_summary)).getText().toString())
                .isEqualTo(defaultTestText);