|
|
@@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
* Copyright 2004 The Apache Software Foundation |
|
|
|
* Copyright 2004-2005 The Apache Software Foundation |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@@ -66,4 +66,13 @@ public class ZipOutputStreamTest extends TestCase { |
|
|
|
assertEquals(test.getValue(), zl.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
public void testAdjustToLong() { |
|
|
|
assertEquals((long) Integer.MAX_VALUE, |
|
|
|
ZipOutputStream.adjustToLong(Integer.MAX_VALUE)); |
|
|
|
assertEquals(((long) Integer.MAX_VALUE) + 1, |
|
|
|
ZipOutputStream.adjustToLong(Integer.MAX_VALUE + 1)); |
|
|
|
assertEquals(2 * ((long) Integer.MAX_VALUE), |
|
|
|
ZipOutputStream.adjustToLong(2 * Integer.MAX_VALUE)); |
|
|
|
} |
|
|
|
|
|
|
|
} |