You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
405 B

package com.sothr.imagetools.hash
import com.sothr.imagetools.BaseTest
import javax.imageio.ImageIO
import java.io.File
/**
* Created by dev on 1/23/14.
*/
class HashServiceTest extends BaseTest {
test("Calculate DHash") {
val sample = new File("./target/sample/sample_01_large.jpg")
val image = ImageIO.read(sample)
val hash = HashService.getDhash(image)
assert(hash == 0L)
}
}