use of org.liberty.android.fantastischmemo.modules.AppComponents in project AnyMemo by helloworld1.
the class CardTextUtilTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
mockOption = Mockito.mock(Option.class);
Mockito.when(mockOption.getEnableArabicEngine()).thenReturn(false);
appComponents = Mockito.mock(AppComponents.class);
Mockito.when(appComponents.applicationContext()).thenReturn(getContext());
Mockito.when(appComponents.amFileUtil()).thenReturn(new AMFileUtil(getContext(), new AMPrefUtil(getContext())));
}
use of org.liberty.android.fantastischmemo.modules.AppComponents 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