Remove pack stream from PackWriterTest
commit252cd74eb0a5611bb09fb696107c10793e0dbca4
authorShawn O. Pearce <spearce@spearce.org>
Tue, 22 Jun 2010 23:54:23 +0000 (22 16:54 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 23 Jun 2010 23:54:14 +0000 (23 16:54 -0700)
tree5bdd744acad54513cf7ca6fe179fea48767c3f26
parenta5aec660eb47a461bfd669da0cf5e84dbb69370c
Remove pack stream from PackWriterTest

This stream was used only to determine how many bytes had been
written thus far.  Except we're always dumping it into a simple
ByteArrayOutputStream, which also knows that.  Drop the dependency
on the pack stream and use ByteArrayOutputStream directly.

This lets us later move this test into the new storage.file
package without dragging along the pack stream that is an internal
implementation detail of PackWriter, which is more general than
just the file storage layer.

Change-Id: I291689c0b1ed799270c213ee73b710b2637fb238
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/PackWriterTest.java