File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919package org .apache .jackrabbit .oak .plugins .blob ;
2020
2121import java .io .File ;
22+ import java .io .FileInputStream ;
2223import java .io .IOException ;
2324import java .io .InputStream ;
2425import java .util .concurrent .CountDownLatch ;
@@ -570,7 +571,7 @@ public void concurrentAddGet() throws Exception {
570571 // Get a handle to the file and open stream
571572 File fileOnUpload = cache .getIfPresent (ID_PREFIX + 0 );
572573 assertNotNull (fileOnUpload );
573- final InputStream fStream = Files . asByteSource (fileOnUpload ). openStream ( );
574+ final InputStream fStream = new FileInputStream (fileOnUpload );
574575
575576 thread1Start .countDown ();
576577
Original file line number Diff line number Diff line change 2020
2121import java .io .BufferedWriter ;
2222import java .io .File ;
23+ import java .io .FileInputStream ;
2324import java .io .FileWriter ;
2425import java .io .IOException ;
2526import java .io .InputStream ;
@@ -502,7 +503,7 @@ public void testConcurrentGetDelete() throws Exception {
502503
503504 // Get a handle to the file and open stream
504505 File file = stagingCache .getIfPresent (ID_PREFIX + 0 );
505- final InputStream fStream = Files . asByteSource (file ). openStream ( );
506+ final InputStream fStream = new FileInputStream (file );
506507
507508 // task to copy the steam to a file simulating read from the stream
508509 File temp = folder .newFile ();
You can’t perform that action at this time.
0 commit comments