commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1647999 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java
Date Fri, 26 Dec 2014 17:30:46 GMT
Author: bodewig
Date: Fri Dec 26 17:30:46 2014
New Revision: 1647999

URL: http://svn.apache.org/r1647999
Log:
so my assumption about time zones was wrong

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java?rev=1647999&r1=1647998&r2=1647999&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ZipUtilTest.java
Fri Dec 26 17:30:46 2014
@@ -95,16 +95,6 @@ public class ZipUtilTest extends TestCas
         assertEquals(0, b1[3]);
     }
 
-    public void testInsideCalendar(){
-        TimeZone tz = TimeZone.getDefault();
-        long date = 476092800000L; // 1.1.1985, 09:00 am GMT
-        byte[] b1 = ZipUtil.toDosTime(date + tz.getOffset(date));
-        assertEquals(0, b1[0]);
-        assertEquals(80, b1[1]);
-        assertEquals(65, b1[2]);
-        assertEquals(10, b1[3]);
-    }
-
     public void testReverse() {
         byte[][] bTest = new byte[6][];
         bTest[0] = new byte[]{};



Mime
View raw message