jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1243825 - in /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk: hash/HashTest.java util/IOUtilsTest.java
Date Tue, 14 Feb 2012 08:36:50 GMT
Author: thomasm
Date: Tue Feb 14 08:36:50 2012
New Revision: 1243825

URL: http://svn.apache.org/viewvc?rev=1243825&view=rev
Log:
Remove unneeded code.

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/hash/HashTest.java
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/IOUtilsTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/hash/HashTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/hash/HashTest.java?rev=1243825&r1=1243824&r2=1243825&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/hash/HashTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/hash/HashTest.java
Tue Feb 14 08:36:50 2012
@@ -18,6 +18,7 @@ package org.apache.jackrabbit.mk.hash;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
+import java.util.Arrays;
 import org.apache.jackrabbit.mk.MultiMkTestBase;
 import org.apache.jackrabbit.mk.mem.NodeImpl;
 import org.apache.jackrabbit.mk.util.IOUtilsTest;
@@ -64,7 +65,7 @@ public class HashTest extends MultiMkTes
         NodeImpl t1 = NodeImpl.parse(mk.getNodes("/", head));
         NodeImpl t2 = NodeImpl.parse(mk.getNodes("/", head));
         IOUtilsTest.assertEquals(t1.getHash(), t2.getHash());
-        assertFalse(IOUtilsTest.isEqual(t1.getHash(), r.getHash()));
+        assertFalse(Arrays.equals(t1.getHash(), r.getHash()));
     }
 
 }

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/IOUtilsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/IOUtilsTest.java?rev=1243825&r1=1243824&r2=1243825&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/IOUtilsTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/IOUtilsTest.java
Tue Feb 14 08:36:50 2012
@@ -24,7 +24,6 @@ import java.io.EOFException;
 import java.io.FilterInputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.Arrays;
 import java.util.Random;
 import java.util.concurrent.atomic.AtomicInteger;
 
@@ -234,16 +233,4 @@ public class IOUtilsTest extends TestCas
         }
     }
 
-    public static boolean isEqual(byte[] expected, byte[] got) {
-        if (expected.length != got.length) {
-            return false;
-        }
-        for (int i = 0; i < got.length; i++) {
-            if (expected[i] == got[i]) {
-                return false;
-            }
-        }
-        return true;
-    }
-
 }



Mime
View raw message