harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r498995 - in /harmony/enhanced/classlib/trunk/modules/security/src/test/api: java.injected/java/security/MessageDigestSpiTest.java java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
Date Tue, 23 Jan 2007 11:51:56 GMT
Author: smishura
Date: Tue Jan 23 03:51:55 2007
New Revision: 498995

URL: http://svn.apache.org/viewvc?view=rev&rev=498995
Log:
Move MessageDigestSpiTest from 'java.injected' to 'java' tests

Added:
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
      - copied, changed from r498899, harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/MessageDigestSpiTest.java
Removed:
    harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/MessageDigestSpiTest.java

Copied: harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
(from r498899, harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/MessageDigestSpiTest.java)
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java?view=diff&rev=498995&p1=harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/MessageDigestSpiTest.java&r1=498899&p2=harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java&r2=498995
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/MessageDigestSpiTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/MessageDigestSpiTest.java
Tue Jan 23 03:51:55 2007
@@ -20,9 +20,11 @@
 * @version $Revision$
 */
 
-package java.security;
+package org.apache.harmony.security.tests.java.security;
 
 import java.nio.ByteBuffer;
+import java.security.DigestException;
+import java.security.MessageDigestSpi;
 
 import junit.framework.TestCase;
 
@@ -92,5 +94,21 @@
 		public Object clone() throws CloneNotSupportedException {
 			throw new CloneNotSupportedException();
 		}
+
+        @Override
+        protected int engineDigest(byte[] buf, int offset, int len)
+                throws DigestException {
+            return super.engineDigest(buf, offset, len);
+        }
+
+        @Override
+        protected int engineGetDigestLength() {
+            return super.engineGetDigestLength();
+        }
+
+        @Override
+        protected void engineUpdate(ByteBuffer input) {
+            super.engineUpdate(input);
+        }
 	}
 }



Mime
View raw message