Package org.jclouds.blobstore.functions

Examples of org.jclouds.blobstore.functions.BlobToHttpGetOptions.apply()


   @Test
   void testOneRange() {
      BlobToHttpGetOptions converter = new BlobToHttpGetOptions();
      org.jclouds.blobstore.options.GetOptions blobGet = new org.jclouds.blobstore.options.GetOptions()
            .range(2, 5);
      GetOptions httpGet = converter.apply(blobGet);
      assertEquals(httpGet.buildRequestHeaders().get("Range"), ImmutableSet
            .of("bytes=2-5"));

   }
}
View Full Code Here


   @Test
   void testOneRange() {
      BlobToHttpGetOptions converter = new BlobToHttpGetOptions();
      org.jclouds.blobstore.options.GetOptions blobGet = new org.jclouds.blobstore.options.GetOptions()
            .range(2, 5);
      GetOptions httpGet = converter.apply(blobGet);
      assertEquals(httpGet.buildRequestHeaders().get("Range"), ImmutableSet
            .of("bytes=2-5"));

   }
}
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.