3435363738394041424344
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/*");
4546474849505152535455
} @Test public void testRangeZeroToFive() { PutBlockOptions options = new PutBlockOptions(); options.range(0, 5); assertEquals(options.getRange(), "bytes 0-5/*"); } @Test public void testRangeOverride() {
5253545556575859606162
} @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() {