Package org.apache.shindig.common.util

Examples of org.apache.shindig.common.util.StringEncoding


    return new JUnit4TestAdapter(StringEncodingTest.class);
  }
  @Test
  public void testBase32() throws Exception {
    StringEncoding encoder = new StringEncoding(
        "0123456789abcdefghijklmnopqrstuv".toCharArray());
    testEncoding(encoder, new byte[] { 0 }, "00");
    testEncoding(encoder, new byte[] { 0, 0 }, "0000");
    testEncoding(encoder, new byte[] { 10, 0 }, "1800");
    testRoundTrip(encoder, Crypto.getRandomBytes(1));
View Full Code Here


public class StringEncodingTest {

  @Test
  public void testBase32() throws Exception {
    StringEncoding encoder = new StringEncoding(
        "0123456789abcdefghijklmnopqrstuv".toCharArray());
    testEncoding(encoder, new byte[] { 0 }, "00");
    testEncoding(encoder, new byte[] { 0, 0 }, "0000");
    testEncoding(encoder, new byte[] { 10, 0 }, "1800");
    testRoundTrip(encoder, Crypto.getRandomBytes(1));
View Full Code Here

TOP

Related Classes of org.apache.shindig.common.util.StringEncoding

Copyright © 2018 www.massapicom. 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.