forked from I2P_Developers/i2p.i2p
minor changes to some tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.i2p.stat;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
@@ -19,7 +20,7 @@ public class RateTest extends TestCase {
|
||||
byte data[] = buf.toString().getBytes();
|
||||
|
||||
Properties props = new Properties();
|
||||
props.load(new java.io.ByteArrayInputStream(data));
|
||||
props.load(new ByteArrayInputStream(data));
|
||||
|
||||
Rate r = new Rate(props, "rate.test", true);
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package net.i2p.stat;
|
||||
|
||||
public class SizeTest {
|
||||
public class SizeMeasure {
|
||||
public static void main(String args[]) {
|
||||
testRateSize(100); //117KB
|
||||
testRateSize(100000); // 4.5MB
|
Reference in New Issue
Block a user