Package com.rackspacecloud.client.cloudfiles

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


    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("with space+and+plus");
     
      // 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));
      assertNotNull(client.getContainerInfo(containerName));
     
      // Try Adding it again
      try {
        client.createContainer(containerName);
View Full Code Here

      catch (FilesContainerExistsException fcee) {
        // Pass this case
      }
     
      // See that it's still there
      assertTrue(client.containerExists(containerName));
     
      boolean found = false;
      List<FilesContainer> containers = client.listContainers();
      for (FilesContainer cont : containers) {
        // logger.warn(cont.getName());
View Full Code Here

     
      // Delete it
      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

    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("<container with\u1422 spaces>");
     
      // 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));
      assertNotNull(client.getContainerInfo(containerName));
     
      // Try Adding it again
      try {
        client.createContainer(containerName);
View Full Code Here

      catch (FilesContainerExistsException fcee) {
        // Hooray!
      }
     
      // See that it's still there
      assertTrue(client.containerExists(containerName));
     
      boolean found = false;
      List<FilesContainerInfo> containers = client.listContainersInfo();
      for (FilesContainerInfo info : containers) {
        if(containerName.equals(info.getName())) {
View Full Code Here

     
      // Delete it
      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

    try {
      assertTrue(client.login());
      String containerName = createTempContainerName("user-agent");
     
      // 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));
      assertNotNull(client.getContainerInfo(containerName));
     
      // Delete it
      assertTrue(client.deleteContainer(containerName));
     
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.