jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1461518 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java
Date Wed, 27 Mar 2013 11:12:24 GMT
Author: thomasm
Date: Wed Mar 27 11:12:24 2013
New Revision: 1461518

URL: http://svn.apache.org/r1461518
Log:
OAK-430 Incorrect read logic in AbstractBlobStore (remove unused code)

Modified:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java

Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java?rev=1461518&r1=1461517&r2=1461518&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/AbstractBlobStoreTest.java
Wed Mar 27 11:12:24 2013
@@ -39,7 +39,7 @@ import org.apache.jackrabbit.mk.util.IOU
  */
 public abstract class AbstractBlobStoreTest extends TestCase {
 
-    protected AbstractBlobStore store;
+    public AbstractBlobStore store;
 
     /**
      * Should be overridden by subclasses to set the {@link #store} variable.
@@ -335,28 +335,4 @@ public abstract class AbstractBlobStoreT
         list.add(file.getAbsolutePath());
     }
 
-    // FIXME: OAK-430: Incorrect read logic in AbstractBlobStore
-//    public void testRead() throws Exception {
-//        int blobLength = 81;
-//        store.setBlockSize(80);
-//        store.setBlockSizeMin(48);
-//
-//        byte[] blob = createBlob(blobLength);
-//        String blobId = store.writeBlob(new ByteArrayInputStream(blob));
-//        assertNotNull(blobId);
-//
-//        byte[] readBlob = new byte[blobLength];
-//        store.readBlob(blobId, 0, readBlob, 0, readBlob.length);
-//        assertTrue(Arrays.equals(blob, readBlob));
-//    }
-
-    private static byte[] createBlob(int blobLength) {
-        byte[] blob = new byte[blobLength];
-        for (int i = 0; i < blob.length; i++) {
-            blob[i] = (byte)i;
-        }
-        return blob;
-    }
-
-
 }



Mime
View raw message