Examples of createContainer()


Examples of org.jclouds.openstack.swift.CommonSwiftClient.createContainer()

   public void testSetGetContainerMetadata() throws InterruptedException {
      CommonSwiftClient swift = view.utils().injector().getInstance(CommonSwiftClient.class);

      String containerName = getContainerName();
     
      assertTrue(swift.createContainer(containerName));
     
      ImmutableMap<String, String> metadata = ImmutableMap.<String, String> of(
            "key1", "value1",
            "key2", "value2");
View Full Code Here

Examples of org.jclouds.openstack.swift.CommonSwiftClient.createContainer()

         .withMetadata(ImmutableMap.<String, String> of(
            "key1", "value1",
            "key2", "value2",
            "key3", "value3"));

      assertTrue(swift.createContainer(containerName, options));
     
      ContainerMetadata containerMetadata = swift.getContainerMetadata(containerName);
     
      assertEquals(containerMetadata.getMetadata().size(), 3);
      assertEquals(containerMetadata.getMetadata().get("key1"), "value1");
View Full Code Here

Examples of org.nanocontainer.aop.AspectablePicoContainerFactory.createContainer()

    public void testCreateWithParentContainer() {
        MutablePicoContainer parent = new DefaultPicoContainer();
        parent.registerComponentInstance("key", "value");
        AspectablePicoContainerFactory containerFactory = new DynaopAspectablePicoContainerFactory();
        PicoContainer child = containerFactory.createContainer(parent);
        assertEquals("value", child.getComponentInstance("key"));
    }
   
    public void testMakeChildContainer(){
        AspectablePicoContainerFactory aspectableContainerFactory = new DynaopAspectablePicoContainerFactory();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.