Package org.jclouds.vcloud.domain.internal

Examples of org.jclouds.vcloud.domain.internal.CatalogImpl


   public void testVCloud1_0() {
      InputStream is = getClass().getResourceAsStream("/catalog-blank.xml");
      injector = Guice.createInjector(new SaxParserModule());
      factory = injector.getInstance(ParseSax.Factory.class);
      Catalog result = factory.create(injector.getInstance(CatalogHandler.class)).parse(is);
      assertEquals(result, new CatalogImpl("Jclouds-private", "application/vnd.vmware.vcloud.catalog+xml", URI
               .create("https://vcenterprise.bluelock.com/api/v1.0/catalog/921222081"), new ReferenceTypeImpl(null,
               "application/vnd.vmware.vcloud.org+xml", URI
                        .create("https://vcenterprise.bluelock.com/api/v1.0/org/9566014")), null, ImmutableMap
               .<String, ReferenceType> of(), ImmutableList.<Task> of(), false, false));
   }
View Full Code Here


         @Override
         public Map<String, Map<String, org.jclouds.vcloud.domain.Catalog>> get() {
            return ImmutableMap.<String, Map<String, org.jclouds.vcloud.domain.Catalog>> of(
                  ORG_REF.getName(), ImmutableMap.<String, org.jclouds.vcloud.domain.Catalog> of(
                        CATALOG_REF.getName(),
                        new CatalogImpl(CATALOG_REF.getName(), CATALOG_REF.getType(), CATALOG_REF.getHref(), null,
                              "description", ImmutableMap.<String, ReferenceType> of(
                                    "item",
                                    new ReferenceTypeImpl("item", "application/vnd.vmware.vcloud.catalogItem+xml", URI
                                          .create("https://vcenterprise.bluelock.com/api/v1.0/catalogItem/1")),
                                    "template",
View Full Code Here

TOP

Related Classes of org.jclouds.vcloud.domain.internal.CatalogImpl

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.