use of org.embulk.spi.util.InputStreamFileInput in project embulk by embulk.
the class TestInputStreamFileInput method testSingleProvider.
@Test
public void testSingleProvider() throws IOException {
InputStreamFileInput subject = new InputStreamFileInput(runtime.getBufferAllocator(), provider(new ByteArrayInputStream("abcdef".getBytes("UTF-8"))));
assertEquals(true, subject.nextFile());
assertEquals("abcdef", bufferToString(subject.poll()));
assertEquals(null, subject.poll());
subject.close();
}
Aggregations