本文整理匯總了Java中android.support.test.espresso.core.deps.guava.base.Strings類的典型用法代碼示例。如果您正苦於以下問題:Java Strings類的具體用法?Java Strings怎麽用?Java Strings使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Strings類屬於android.support.test.espresso.core.deps.guava.base包,在下文中一共展示了Strings類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: whenDefaultGifsAreLoaded
import android.support.test.espresso.core.deps.guava.base.Strings; //導入依賴的package包/類
@Test
public void whenDefaultGifsAreLoaded() {
try {
DB db = DBFactory.open(getTargetContext());
db.destroy();
} catch (Exception e) {
Log.e("TEST", e.getLocalizedMessage(), e);
}
mHelper.dispatchFakeAppState(ImmutableAppState.builder().build());
mHelper.replacePersistenceMiddleware(new DataManager(getTargetContext()));
GifActionCreator.getInstance().setDispatcher(mock(DispatcherImpl.class));
mActivityTestRule.launchActivity(new Intent());
Map<String, Gif> expectedGifs = getAppStateDefault().getGifs();
RecyclerTestLocker locker = new RecyclerTestLocker(getRecyclerView(), expectedGifs.size());
locker.waitForEspresso();
Map<Strings, Gif> gotGifs = ((GifsAdapter) getRecyclerView().getAdapter()).getGifs();
assertEquals(expectedGifs, gotGifs);
GifActionCreator.getInstance().setDispatcher(getFluxxan().getDispatcher());
}