use of org.apache.jackrabbit.oak.spi.blob.BlobStore in project jackrabbit-oak by apache.
the class DefaultStandbyBlobReaderTest method shouldReturnBlobContent.
@Test
public void shouldReturnBlobContent() throws Exception {
BlobStore s = mock(BlobStore.class);
when(s.getInputStream("id")).thenReturn(new ByteArrayInputStream(new byte[] { 1, 2, 3 }));
DefaultStandbyBlobReader r = new DefaultStandbyBlobReader(s);
assertArrayEquals(new byte[] { 1, 2, 3 }, r.readBlob("id"));
}
Aggregations