VCloudTemplateOptions extends TemplateOptions implements Cloneable { @Override public VCloudTemplateOptions blockOnPort(int port, int seconds) { return VCloudTemplateOptions.class.cast(super.blockOnPort(port, seconds)); }  @Override VCloudTemplateOptions clone(); @Override void copyTo(TemplateOptions to); @Override boolean equals(Object o); @Override int hashCode(); @Override ToStringHelper string(); VCloudTemplateOptions description(String description); VCloudTemplateOptions customizationScript(String customizationScript); VCloudTemplateOptions ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode); VCloudTemplateOptions parentNetwork(URI parentNetwork); VCloudTemplateOptions fenceMode(FenceMode fenceMode); String getDescription(); String getCustomizationScript(); IpAddressAllocationMode getIpAddressAllocationMode(); URI getParentNetwork(); FenceMode getFenceMode(); @Override VCloudTemplateOptions blockOnPort(int port, int seconds); @Override VCloudTemplateOptions inboundPorts(int... ports); @Override VCloudTemplateOptions authorizePublicKey(String publicKey); @Override VCloudTemplateOptions installPrivateKey(String privateKey); @Override VCloudTemplateOptions userMetadata(Map<String, String> userMetadata); @Override VCloudTemplateOptions userMetadata(String key, String value);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testblockOnPortBadFormat() { VCloudTemplateOptions options = new VCloudTemplateOptions(); options.blockOnPort(-1, -1); }
@Test public void testblockOnPort() { VCloudTemplateOptions options = new VCloudTemplateOptions(); options.blockOnPort(22, 30); assertEquals(options.getPort(), 22); assertEquals(options.getSeconds(), 30); }
@Test public void testblockOnPortStatic() { VCloudTemplateOptions options = blockOnPort(22, 30); assertEquals(options.getPort(), 22); assertEquals(options.getSeconds(), 30); }