use old-style FileResource for 1.5 compatibility
This commit is contained in:
parent
3807b2d138
commit
8f0260433c
|
@ -41,7 +41,8 @@ public class SnappyInputStreamTest
|
|||
private static Logger _logger = Logger.getLogger(SnappyInputStreamTest.class);
|
||||
|
||||
public static byte[] readResourceFile(String fileName) throws IOException {
|
||||
BufferedInputStream input = FileResource.openByteStream(SnappyOutputStreamTest.class, fileName);
|
||||
BufferedInputStream input = new BufferedInputStream(FileResource.find(SnappyOutputStreamTest.class, fileName)
|
||||
.openStream());
|
||||
assertNotNull(input);
|
||||
return readFully(input);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,8 @@ public class SnappyOutputStreamTest
|
|||
ByteArrayOutputStream buf = new ByteArrayOutputStream();
|
||||
SnappyOutputStream sout = new SnappyOutputStream(buf);
|
||||
|
||||
BufferedInputStream input = FileResource.openByteStream(SnappyOutputStreamTest.class, "alice29.txt");
|
||||
BufferedInputStream input = new BufferedInputStream(FileResource.find(SnappyOutputStreamTest.class,
|
||||
"alice29.txt").openStream());
|
||||
assertNotNull(input);
|
||||
|
||||
ByteArrayOutputStream orig = new ByteArrayOutputStream();
|
||||
|
|
Loading…
Reference in New Issue