use of org.teiid.common.buffer.FileStore.FileStoreOutputStream in project teiid by teiid.
the class TestFileStorageManager method testFlush.
@Test
public void testFlush() throws Exception {
FileStorageManager sm = getStorageManager(null, null);
FileStore store = sm.createFileStore("0");
FileStoreOutputStream fsos = store.createOutputStream(2);
fsos.write(new byte[3]);
fsos.write(1);
fsos.flush();
assertEquals(0, fsos.getCount());
}
Aggregations