mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 21:53:43 +00:00
moar test cases
This commit is contained in:
1 parent
1b5309be05
commit
35fb332c2c
1 file changed
+7
@@ -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