Package com.rackspacecloud.client.cloudfiles

Examples of com.rackspacecloud.client.cloudfiles.FilesClient.containerExists()


     
      // Delete it
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     

    } catch (Exception e) {
      fail(e.getMessage());
    }
View Full Code Here


    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("/");
     
      // Make sure they're not there
      assertFalse(client.containerExists(containerName));
     
      // Try to add it
      boolean exceptionThrown = false;
      try {
        client.createContainer(containerName);
View Full Code Here

      // Set up
      client.createContainer(containerName);
     
     
      // Make sure it's there
      assertTrue(client.containerExists(containerName));

      // Make sure we can get the container info
      assertNotNull(client.getContainerInfo(containerName));
     
      // Clean up
View Full Code Here

      assertTrue(client.usingSnet());
      assertTrue(client.login());
      String containerName = createTempContainerName("pathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
View Full Code Here

     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      byte randomData[] = makeRandomBytes();
      client.createPath(containerName, "foo");
      client.storeObject(containerName, randomData, "application/octet-stream", "notInContainer.dat", new HashMap<String, String>());
View Full Code Here

      client.deleteObject(containerName, "foo/inContainer.dat");
      client.deleteObject(containerName, "foo");
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

      assertTrue(client.usingSnet());
      assertTrue(client.login());
      String containerName = createTempContainerName("pathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
View Full Code Here

     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
      assertTrue(client.containerExists(containerName));
     
      // Add a path and two files
      client.createFullPath(containerName, "foo/bar/baz");
     
      List<FilesObject> allObjects = client.listObjects(containerName);
View Full Code Here

      client.deleteObject(containerName, "foo/bar");
      client.deleteObject(containerName, "foo");
      assertTrue(client.deleteContainer(containerName));
     
      // Make sure it's gone
      assertFalse(client.containerExists(containerName));
     
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
View Full Code Here

      assertTrue(client.usingSnet());
      assertTrue(client.login());
      String containerName = createTempContainerName("FOpathTest");
     
      // Make sure it's not there
      assertFalse(client.containerExists(containerName));
     
      // Add it
      client.createContainer(containerName);
     
      // See that it's there
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.