Merge "Fix AccessibilityButtonFragmentTest"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e22ced8920
@@ -67,6 +67,7 @@ public class AccessibilityButtonFragmentTest {
|
|||||||
@Before
|
@Before
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
mFragment = spy(new TestAccessibilityButtonFragment(mContext));
|
mFragment = spy(new TestAccessibilityButtonFragment(mContext));
|
||||||
|
when(mContext.getResources()).thenReturn(mResources);
|
||||||
when(mFragment.getResources()).thenReturn(mResources);
|
when(mFragment.getResources()).thenReturn(mResources);
|
||||||
when(mFragment.getActivity()).thenReturn(Robolectric.setupActivity(FragmentActivity.class));
|
when(mFragment.getActivity()).thenReturn(Robolectric.setupActivity(FragmentActivity.class));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user