List<ValueData> values = new ArrayList<ValueData>();
values.add(testerTransientValueData.getTransientValueData(buf, 0));
values.add(testerTransientValueData.getTransientValueData(buf, 1));
values.add(testerTransientValueData.getTransientValueData(buf, 2));
ChangedSizeHandler sizeHandler = new SimpleChangedSizeHandler();
for (ValueData valueData : values)
{
channel.write("testWriteToIOChannel", valueData, sizeHandler);
}
channel.commit();
assertTrue(new File(rootDir, "testWriteToIOChannel0").exists());
assertTrue(new File(rootDir, "testWriteToIOChannel1").exists());
assertTrue(new File(rootDir, "testWriteToIOChannel2").exists());
assertEquals(10, new File(rootDir, "testWriteToIOChannel0").length());
assertEquals(30, sizeHandler.getChangedSize());
channel.delete("testWriteToIOChannel");
channel.commit();
}