Package com.elasticinbox.core.blob

Examples of com.elasticinbox.core.blob.BlobURI.fromURI()


  public void testFromURI1()
  {
    URI testUri = URI.create("blob://aws3-bucket/f1ca99e0-99a0-11e2-95f0-040cced3bd7a:myemail%40elasticinbox.com?c=dfl&e=ekey2");

    BlobURI bu = new BlobURI();
    bu.fromURI(testUri);
   
    assertEquals("aws3-bucket", bu.getProfile());
    assertEquals("f1ca99e0-99a0-11e2-95f0-040cced3bd7a:myemail@elasticinbox.com", bu.getName());
    assertEquals("dfl", bu.getCompression());
    assertEquals("ekey2", bu.getEncryptionKey());
View Full Code Here


  public void testFromURI2()
  {
    URI testUri = URI.create("blob://db/f1ca99e0-99a0-11e2-95f0-040cced3bd7a?c=gz&b=1");

    BlobURI bu = new BlobURI();
    bu.fromURI(testUri);
   
    assertEquals("db", bu.getProfile());
    assertEquals("f1ca99e0-99a0-11e2-95f0-040cced3bd7a", bu.getName());
    assertEquals("gz", bu.getCompression());
    assertEquals(new Integer(1), bu.getBlockCount());
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.