question: public void testSearchablesListReal ( ) { MyMockPackageManager mockPM = new MyMockPackageManager ( mContext . getPackageManager ( ) ) ; MyMockContext mockContext = new MyMockContext ( mContext , mockPM ) ; mockPM . setSearchablesMode ( MyMockPackageManager . SEARCHABLES_PASSTHROUGH ) ; Searchables searchables = new Searchables ( mockContext , 0 ) ; searchables . buildSearchableList ( ) ; ArrayList < SearchableInfo > searchablesList = searchables . getSearchablesList ( ) ; int count = searchablesList . size ( ) ; assertTrue ( count >= 1 ) ; checkSearchables ( searchablesList ) ; ArrayList < SearchableInfo > global = searchables . getSearchablesInGlobalSearchList ( ) ; checkSearchables ( global ) ; }
target:  This is an attempt to run the searchable info list with a mocked context.  Here are some things I'd like to test. Confirm OK with "zero" searchables Confirm "good" metadata read properly Confirm "bad" metadata skipped properly Confirm ordering of searchables Confirm "good" actionkeys confirm "bad" actionkeys are rejected confirm XML ordering enforced (will fail today - bug in SearchableInfo) findActionKey works getIcon works