Search in sources :

Example 1 with HashService

use of com.instaclustr.esop.impl.hash.HashService in project esop by instaclustr.

the class HashServiceTest method testHashing.

@Test
public void testHashing() throws Exception {
    final File f = File.createTempFile("hashingTest", ".tmp");
    Files.write(f.toPath(), "".getBytes());
    final HashService hashService = new HashServiceImpl(new HashSpec());
    hashService.verify(f.toPath(), hashService.hash(f.toPath()));
}
Also used : HashSpec(com.instaclustr.esop.impl.hash.HashSpec) File(java.io.File) HashService(com.instaclustr.esop.impl.hash.HashService) HashServiceImpl(com.instaclustr.esop.impl.hash.HashServiceImpl) Test(org.testng.annotations.Test)

Aggregations

HashService (com.instaclustr.esop.impl.hash.HashService)1 HashServiceImpl (com.instaclustr.esop.impl.hash.HashServiceImpl)1 HashSpec (com.instaclustr.esop.impl.hash.HashSpec)1 File (java.io.File)1 Test (org.testng.annotations.Test)1