Added more unit tests to UploadMediaPresenterTest (#3251)

This commit is contained in:
Ashish Kumar 2019-11-30 22:11:06 +05:30 committed by Vivek Maskara
parent 88bb1d87ca
commit 36e0f766c9
2 changed files with 79 additions and 1 deletions

View file

@ -160,7 +160,7 @@ public class UploadMediaPresenter implements UserActionListener, SimilarImageInt
*
* @param errorCode
*/
private void handleBadImage(Integer errorCode) {
public void handleBadImage(Integer errorCode) {
Timber.d("Handle bad picture with error code %d", errorCode);
if (errorCode
>= 8) { // If location of image and nearby does not match, then set shared preferences to disable wikidata edits