Package org.modeshape.jcr.value

Examples of org.modeshape.jcr.value.BinaryValue.compareTo()


            shorterContent[i] = validByteArrayContent[i];
        }
        BinaryValue another = new InMemoryBinaryValue(store, shorterContent);
        assertThat(binary.equals(another), is(false));
        assertThat(binary.compareTo(another) > 0, is(true));
        assertThat(another.compareTo(binary) < 0, is(true));
        assertThat(another, hasContent(shorterContent));
    }

    @Test
    public void shouldComputeSha1HashOfEmptyContent() throws Exception {
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.