I'm running on Window XP Professional.
testGetStreamReturnsNewStream creates 3 streams and doesn't close
them. So, the tear down routine was unable to delete the temp file.
Closing the streams as below worked for me.
Thanks,
adirondack
public void testGetStreamReturnsNewStream() throws Exception
{
String testData = "There's something quite peaceful about
writing
tests.";
String id = "id_6";
AttachmentStore store = makeStoreWithData(id, testData);
AttachmentData data = store.getAttachment(id);
InputStream is1 = data.getInputStream();
InputStream is2 = data.getInputStream();
assertNotSame(is1, is2);
int firstByte = is1.read();
assertSame(firstByte, is2.read());
// Check that a new input stream created now still has the same
first byte.
InputStream is3 = data.getInputStream();
assertSame(firstByte, is3.read());
is1.close();
is2.close();
is3.close();
}
--
You received this message because you are subscribed to the Google Groups "Wave
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/wave-protocol?hl=en.