Merge "Purify SettingsActivity from old search code."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8c451742d0
@@ -30,7 +30,6 @@ import org.mockito.MockitoAnnotations;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Matchers.anyInt;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
@@ -59,20 +58,6 @@ public class SettingsActivityTest {
|
||||
doReturn(mBitmap).when(mActivity).getBitmapFromXmlResource(anyInt());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testQueryTextChange_shouldUpdate() {
|
||||
final String testQuery = "abc";
|
||||
|
||||
assertThat(mActivity.mSearchQuery).isNull();
|
||||
try {
|
||||
mActivity.onQueryTextChange(testQuery);
|
||||
} catch (NullPointerException e) {
|
||||
// Expected, because searchFeatureProvider is not wired up.
|
||||
}
|
||||
|
||||
assertThat(mActivity.mSearchQuery).isEqualTo(testQuery);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void launchSettingFragment_nullExtraShowFragment_shouldNotCrash()
|
||||
throws ClassNotFoundException {
|
||||
|
Reference in New Issue
Block a user