use of org.liberty.android.fantastischmemo.ui.CardImageGetter in project AnyMemo by helloworld1.
the class CardImageGetterTest method setUp.
@Before
public void setUp() {
Display display = ((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
screenWidth = display.getWidth();
AppComponents appComponents = Mockito.mock(AppComponents.class);
Mockito.when(appComponents.applicationContext()).thenReturn(getContext());
Mockito.when(appComponents.amFileUtil()).thenReturn(new AMFileUtil(getContext(), new AMPrefUtil(getContext())));
cardImageGetter = new CardImageGetter(appComponents, imageSearchPaths);
}
Aggregations