@author Adrian Cole
@Test(groups = "unit", testName = "mezeo.PutBlockOptionsTest")
public class PutBlockOptionsTest {
@Test
public void testRange() {
PutBlockOptions options = new PutBlockOptions();
options.range(0, 1024);
bytes1to1024(options);
}
assertEquals(options.getRange(), "bytes 0-1024/*");
}
@Test
public void testRangeZeroToFive() {
PutBlockOptions options = new PutBlockOptions();
options.range(0, 5);
assertEquals(options.getRange(), "bytes 0-5/*");
}
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/*");
}
assertEquals(options.getRange(), "bytes 10-100/*");
}
@Test
public void testNullRange() {
PutBlockOptions options = new PutBlockOptions();
assertNull(options.getRange());
}
assertNull(options.getRange());
}
@Test
public void testRangeStatic() {
PutBlockOptions options = range(0, 1024);
bytes1to1024(options);
}
Related Classes of org.jclouds.mezeo.pcs.options.PutBlockOptions$Builder
Copyright © 2018 www.massapicom. 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.