@Test public void testinboundPortsStatic() { NovaTemplateOptions options = inboundPorts(22, 30); assertEquals(options.getInboundPorts()[0], 22); assertEquals(options.getInboundPorts()[1], 30); } }
@Test public void testinboundPortsStatic() { NovaTemplateOptions options = inboundPorts(22, 30); assertEquals(options.getInboundPorts()[0], 22); assertEquals(options.getInboundPorts()[1], 30); } }
@Test public void testDefaultOpen22() { NovaTemplateOptions options = new NovaTemplateOptions(); assertEquals(options.getInboundPorts()[0], 22); }
@Test public void testinboundPorts() { NovaTemplateOptions options = new NovaTemplateOptions(); options.inboundPorts(22, 30); assertEquals(options.getInboundPorts()[0], 22); assertEquals(options.getInboundPorts()[1], 30); }
@Test public void testinboundPorts() { NovaTemplateOptions options = new NovaTemplateOptions(); options.inboundPorts(22, 30); assertEquals(options.getInboundPorts()[0], 22); assertEquals(options.getInboundPorts()[1], 30); }
@Test public void testDefaultOpen22() { NovaTemplateOptions options = new NovaTemplateOptions(); assertEquals(options.getInboundPorts()[0], 22); }
List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts()); if (templateOptions.getSecurityGroupNames().isPresent() && templateOptions.getSecurityGroupNames().get().size() > 0) {
List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts()); if (!templateOptions.getGroups().isEmpty()) { checkArgument(securityGroupExtensionPresent,
List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts()); if (templateOptions.getSecurityGroupNames().isPresent() && templateOptions.getSecurityGroupNames().get().size() > 0) {
List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts()); if (templateOptions.getSecurityGroupNames().isPresent() && templateOptions.getSecurityGroupNames().get().size() > 0) {
"Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); final List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts());
"Key Pairs are required by options, but the extension is not available! options: %s", templateOptions); final List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts());