@author Adrian Cole
333435363738394041
@Test(groups = "unit", testName = "mezeo.PutBlockOptionsTest") public class PutBlockOptionsTest { @Test public void testRange() { PutBlockOptions options = new PutBlockOptions(); options.range(0, 1024); bytes1to1024(options); }
444546474849505152
assertEquals(options.getRange(), "bytes 0-1024/*"); } @Test public void testRangeZeroToFive() { PutBlockOptions options = new PutBlockOptions(); options.range(0, 5); assertEquals(options.getRange(), "bytes 0-5/*"); }
515253545556575859
assertEquals(options.getRange(), "bytes 0-5/*"); } @Test public void testRangeOverride() { PutBlockOptions options = new PutBlockOptions(); options.range(0, 5).range(10, 100); assertEquals(options.getRange(), "bytes 10-100/*"); }
5859606162636465
assertEquals(options.getRange(), "bytes 10-100/*"); } @Test public void testNullRange() { PutBlockOptions options = new PutBlockOptions(); assertNull(options.getRange()); }
6465666768697071
assertNull(options.getRange()); } @Test public void testRangeStatic() { PutBlockOptions options = range(0, 1024); bytes1to1024(options); }