Package org.jclouds.mezeo.pcs.options

Examples of org.jclouds.mezeo.pcs.options.PutBlockOptions.range()


public class PutBlockOptionsTest {

   @Test
   public void testRange() {
      PutBlockOptions options = new PutBlockOptions();
      options.range(0, 1024);
      bytes1to1024(options);
   }

   private void bytes1to1024(PutBlockOptions options) {
      assertEquals(options.getRange(), "bytes 0-1024/*");
 
View Full Code Here


   }

   @Test
   public void testRangeZeroToFive() {
      PutBlockOptions options = new PutBlockOptions();
      options.range(0, 5);
      assertEquals(options.getRange(), "bytes 0-5/*");
   }

   @Test
   public void testRangeOverride() {
View Full Code Here

   }

   @Test
   public void testRangeOverride() {
      PutBlockOptions options = new PutBlockOptions();
      options.range(0, 5).range(10, 100);
      assertEquals(options.getRange(), "bytes 10-100/*");
   }

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