mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-29 03:18:45 +00:00
moar test cases
This commit is contained in:
@@ -136,6 +136,13 @@ public class DataHelperTest extends TestCase{
|
||||
DataHelper.skip(tis, 1);
|
||||
fail();
|
||||
} catch (IOException ioe) {}
|
||||
|
||||
DataHelper.skip(tis, 0);
|
||||
|
||||
try {
|
||||
DataHelper.skip(tis, -1);
|
||||
fail("skipped negative?");
|
||||
} catch (IllegalArgumentException expected) {}
|
||||
}
|
||||
|
||||
private static class TestInputStream extends ByteArrayInputStream {
|
||||
|
||||
Reference in New Issue
Block a user