Merge "Pivot network statistics to use DataInput/Output."
This commit is contained in:
@@ -64,7 +64,6 @@ import org.junit.runner.RunWith;
|
|||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@@ -124,7 +123,7 @@ public class NetworkStatsCollectionTest {
|
|||||||
|
|
||||||
// now export into a unified format
|
// now export into a unified format
|
||||||
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
collection.write(new DataOutputStream(bos));
|
collection.write(bos);
|
||||||
|
|
||||||
// clear structure completely
|
// clear structure completely
|
||||||
collection.reset();
|
collection.reset();
|
||||||
@@ -152,7 +151,7 @@ public class NetworkStatsCollectionTest {
|
|||||||
|
|
||||||
// now export into a unified format
|
// now export into a unified format
|
||||||
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
collection.write(new DataOutputStream(bos));
|
collection.write(bos);
|
||||||
|
|
||||||
// clear structure completely
|
// clear structure completely
|
||||||
collection.reset();
|
collection.reset();
|
||||||
@@ -180,7 +179,7 @@ public class NetworkStatsCollectionTest {
|
|||||||
|
|
||||||
// now export into a unified format
|
// now export into a unified format
|
||||||
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
collection.write(new DataOutputStream(bos));
|
collection.write(bos);
|
||||||
|
|
||||||
// clear structure completely
|
// clear structure completely
|
||||||
collection.reset();
|
collection.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user