From 3a68d4df5a98b352e97ec1f771bd688f8d22061c Mon Sep 17 00:00:00 2001 From: Vivek Maskara Date: Mon, 17 Jun 2019 20:36:53 +0530 Subject: [PATCH] Fix test --- .../fr/free/nrw/commons/upload/ImageProcessingServiceTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/test/kotlin/fr/free/nrw/commons/upload/ImageProcessingServiceTest.kt b/app/src/test/kotlin/fr/free/nrw/commons/upload/ImageProcessingServiceTest.kt index a89e5fa48c4..a7cfdba8807 100644 --- a/app/src/test/kotlin/fr/free/nrw/commons/upload/ImageProcessingServiceTest.kt +++ b/app/src/test/kotlin/fr/free/nrw/commons/upload/ImageProcessingServiceTest.kt @@ -58,6 +58,7 @@ class u { `when`(uploadItem.title).thenReturn(mockTitle) `when`(uploadItem.place).thenReturn(mockPlace) + `when`(uploadItem.fileName).thenReturn("File:jpg") `when`(fileUtilsWrapper!!.getFileInputStream(ArgumentMatchers.anyString())) .thenReturn(mock(FileInputStream::class.java))