Package com.rackspacecloud.client.cloudfiles

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


      assertArrayEquals(randomData, otherData);
      assertEquals(-1, is.read()); // Could hang if there's a bug on the other end
     
      // Clean up
      client.deleteObject(containerName, filename);
      assertTrue(client.deleteContainer(containerName));
     
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here


      assertArrayEquals(randomData, otherData);
      assertEquals(-1, is.read()); // Could hang if there's a bug on the other end
     
      // Clean up
      client.deleteObject(containerName, filename);
      assertTrue(client.deleteContainer(containerName));
     
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      // Make sure we can get the container info
      assertNotNull(client.getContainerInfo(containerName));
     
      // Clean up
      assertTrue(client.deleteContainer(containerName));
     
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      // Make sure we can get the container info
      assertNotNull(client.getContainerInfo(containerName));
     
      // Clean up
      client.deleteObject(containerName, filename);
      assertTrue(client.deleteContainer(containerName));
     
    }
    catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
View Full Code Here

      FilesObject obj = objects.get(0);
      assertEquals(cdnUrl + "/" + filename, obj.getCDNURL());
     
      // Clean up
      client.deleteObject(containerName, filename);
      assertTrue(client.deleteContainer(containerName));
     
    } catch (Exception e) {
      fail(e.getMessage());
    }
   
View Full Code Here

      //client.purgeCDNContainer(containerName, null);
      //client.purgeCDNObject(containerName, "object.txt", "lowell.vaughn@rackspace.com");
      client.purgeCDNObject(containerName, "object.txt", null);
      client.purgeCDNObject(containerName, "path/object.txt", null);
 
      assertTrue(client.deleteContainer(containerName));
     
    } catch (Exception e) {
      e.printStackTrace();
      fail(e.getMessage());
    }
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.