Package org.apache.jackrabbit.mongomk.command

Examples of org.apache.jackrabbit.mongomk.command.GetBlobLengthCommandMongo.execute()


    public void testGetBlobLength() throws Exception {
        int blobLength = 100;
        String blobId = createAndWriteBlob(blobLength);

        GetBlobLengthCommandMongo command = new GetBlobLengthCommandMongo(mongoConnection, blobId);
        long length = command.execute();
        assertEquals(blobLength, length);
    }

    @Test
    public void testNonExistantBlobLength() throws Exception {
View Full Code Here


    @Test
    public void testNonExistantBlobLength() throws Exception {
        GetBlobLengthCommandMongo command = new GetBlobLengthCommandMongo(mongoConnection,
                "nonExistantBlobId");
        try {
            command.execute();
            fail("Exception expected");
        } catch (Exception expected) {
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.