Examples of copyPrefixTo()


Examples of com.moesol.geoserver.sync.core.Sha1Value.copyPrefixTo()

  }
 
  public void testCopyPrefixTo() {
    Sha1Value value = new Sha1Value(new byte[] { 0, 1, 2, 3 });
    byte[] out = new byte[3];
    value.copyPrefixTo(out);
    assertTrue(Arrays.equals(new byte[] { 0, 1, 2 }, out));
  }
 
  public void testHashAndEquals() {
    Sha1Value v1 = new Sha1Value("aa");
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.