Package org.jclouds.ovf

Examples of org.jclouds.ovf.NetworkSection$Builder


public class NetworkSectionHandlerTest {
   public void test() {
      InputStream is = getClass().getResourceAsStream("/networksection.xml");
      Injector injector = Guice.createInjector(new SaxParserModule());
      Factory factory = injector.getInstance(ParseSax.Factory.class);
      NetworkSection result = factory.create(injector.getInstance(NetworkSectionHandler.class)).parse(is);
      assertEquals(result.toString(), NetworkSection.builder().info("List of logical networks used in the package")
               .network(
                        Network.builder().name("red").description("The network the Red service is available on")
                                 .build()).network(
                        Network.builder().name("blue").description("The network the Blue service is available on")
                                 .build())
View Full Code Here


   }

   private ReferenceType net;

   public VCloudNetworkSection getResult() {
      NetworkSection system = networkSectionHandler.getResult();
      return new VCloudNetworkSection(net.getType(), net.getHref(), system.getInfo(), system.getNetworks());
   }
View Full Code Here

public class NetworkSectionHandlerTest {
   public void test() {
      InputStream is = getClass().getResourceAsStream("/networksection.xml");
      Injector injector = Guice.createInjector(new SaxParserModule());
      Factory factory = injector.getInstance(ParseSax.Factory.class);
      NetworkSection result = factory.create(injector.getInstance(NetworkSectionHandler.class)).parse(is);
      assertEquals(result.toString(), NetworkSection.builder().info("List of logical networks used in the package")
               .network(
                        Network.builder().name("red").description("The network the Red service is available on")
                                 .build()).network(
                        Network.builder().name("blue").description("The network the Blue service is available on")
                                 .build())
View Full Code Here

   }

   private ReferenceType net;

   public VCloudNetworkSection getResult() {
      NetworkSection system = networkSectionHandler.getResult();
      return new VCloudNetworkSection(net.getType(), net.getHref(), system.getInfo(), system.getNetworks());
   }
View Full Code Here

   }

   private ReferenceType net;

   public VCloudNetworkSection getResult() {
      NetworkSection system = networkSectionHandler.getResult();
      return new VCloudNetworkSection(net.getType(), net.getHref(), system.getInfo(), system.getNetworks());
   }
View Full Code Here

public class NetworkSectionHandlerTest {
   public void test() {
      InputStream is = getClass().getResourceAsStream("/networksection.xml");
      Injector injector = Guice.createInjector(new SaxParserModule());
      Factory factory = injector.getInstance(ParseSax.Factory.class);
      NetworkSection result = factory.create(injector.getInstance(NetworkSectionHandler.class)).parse(is);
      assertEquals(result.toString(), NetworkSection.builder().info("List of logical networks used in the package")
               .network(
                        Network.builder().name("red").description("The network the Red service is available on")
                                 .build()).network(
                        Network.builder().name("blue").description("The network the Blue service is available on")
                                 .build())
View Full Code Here

TOP

Related Classes of org.jclouds.ovf.NetworkSection$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.