mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Added IPTC reader (#2383)
* graddle changes * readfbmd class * jar files * added icafe * gradle changes * ReadFBMD * recent commit * commit changes * commit changes * fixed code quality issues * optimised imports * changes for reviews * not instantiating class * removed irrelevant code * added documentation * modified test cases * commit changes * modified variable * modified variable * javadoc * test changes * removed .log file * Show warning dialog for FBMD
This commit is contained in:
parent
00b95ea9cf
commit
3a822d3c30
8 changed files with 125 additions and 18 deletions
|
|
@ -19,7 +19,7 @@ import org.mockito.Mockito.*
|
|||
import org.mockito.MockitoAnnotations
|
||||
import java.io.FileInputStream
|
||||
|
||||
class ImageProcessingServiceTest {
|
||||
class u {
|
||||
@Mock
|
||||
internal var fileUtilsWrapper: FileUtilsWrapper? = null
|
||||
@Mock
|
||||
|
|
@ -28,6 +28,8 @@ class ImageProcessingServiceTest {
|
|||
internal var imageUtilsWrapper: ImageUtilsWrapper? = null
|
||||
@Mock
|
||||
internal var mwApi: MediaWikiApi? = null
|
||||
@Mock
|
||||
internal var readFBMD: ReadFBMD?=null
|
||||
|
||||
@InjectMocks
|
||||
var imageProcessingService: ImageProcessingService? = null
|
||||
|
|
@ -80,6 +82,8 @@ class ImageProcessingServiceTest {
|
|||
.thenReturn(false)
|
||||
`when`(mwApi!!.fileExistsWithName(ArgumentMatchers.anyString()))
|
||||
.thenReturn(false)
|
||||
`when`(readFBMD?.processMetadata(ArgumentMatchers.anyString()))
|
||||
.thenReturn(Single.just(ImageUtils.IMAGE_OK))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue