harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r527459 - in /harmony/enhanced/classlib/trunk/modules/archive/src: main/java/java/util/zip/ZipEntry.java test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java
Date Wed, 11 Apr 2007 11:54:53 GMT
Author: pyang
Date: Wed Apr 11 04:54:52 2007
New Revision: 527459

URL: http://svn.apache.org/viewvc?view=rev&rev=527459
Log:
Apply patch for HARMONY-3613([classlib][archive] Add test for java.util.zip.ZipFile.size()
and remove some useless methods of ZipEntry)

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/ZipEntry.java
    harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/ZipEntry.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/ZipEntry.java?view=diff&rev=527459&r1=527458&r2=527459
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/ZipEntry.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/zip/ZipEntry.java
Wed Apr 11 04:54:52 2007
@@ -120,10 +120,6 @@
 		return name;
 	}
 
-	long getOffset() {
-		return dataOffset;
-	}
-
 	/**
 	 * Gets the uncompressed size of this ZipEntry.
 	 * 
@@ -233,14 +229,6 @@
             throw new IllegalArgumentException();
         }
 		compressionMethod = value;
-	}
-
-	void setName(String entryName) {
-		name = entryName;
-	}
-
-	void setOffset(long value) {
-		dataOffset = value;
 	}
 
 	/**

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java?view=diff&rev=527459&r1=527458&r2=527459
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java
Wed Apr 11 04:54:52 2007
@@ -223,6 +223,13 @@
 		assertTrue("Returned incorrect name: " + zfile.getName(), zfile
 				.getName().equals(tempFileName));
 	}
+    
+    /**
+     * @tests java.util.zip.ZipFile#size()
+     */
+    public void test_size() {
+        assertEquals(6, zfile.size());
+    }
 
 	/**
 	 * Sets up the fixture, for example, open a network connection. This method



Mime
View raw message