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:
Vanshika Arora 2019-02-24 23:16:22 +05:30 committed by Vivek Maskara
parent 00b95ea9cf
commit 3a822d3c30
8 changed files with 125 additions and 18 deletions

View file

@ -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