assertTrue(s.length() == i);
assertEquals(s, new String(buffer, 0, i));
}
public void testCreateTempFileStringString() throws IOException {
SimpleTempStorage man = new SimpleTempStorage();
TempPath path = man.getRootTempPath().createTempPath();
TempFile file = path.createTempFile("test_prefix", ".suffix");
assertTrue(file.getAbsolutePath().startsWith(path.getAbsolutePath()));
String fileName = file.getAbsolutePath().substring(
file.getAbsolutePath().lastIndexOf(File.separatorChar) + 1);