Package com.rackspacecloud.client.cloudfiles

Examples of com.rackspacecloud.client.cloudfiles.FilesContainer


      // Now do a limit
      List<FilesContainer> containers = client.listContainers(5);
      assertEquals(5, containers.size());
      for (int i=0; i < 5; i++) {
        FilesContainer container = containers.get(i);
        assertEquals(originalContainers.get(i).getName(), container.getName());
      }
     
      // Now check out a marker
      containers = client.listContainers(10, originalContainers.get(originalContainers.size() - 5).getName());
      assertEquals(4, containers.size());
      for (int i=0; i < 2; i++) {
        FilesContainer container = containers.get(i);
        assertEquals(originalContainers.get(originalContainers.size() - 4 + i).getName(), container.getName());
      }
     
      // Clean up
      for (int i=0; i < 20; i++) {
        assertTrue(client.deleteContainer("test_container_" + i));
View Full Code Here


      // Now do a limit
      List<FilesContainer> containers = client.listContainers(5);
      assertEquals(5, containers.size());
      for (int i=0; i < 5; i++) {
        FilesContainer container = containers.get(i);
        assertEquals(originalContainers.get(i).getName(), container.getName());
      }
     
      // Now check out a marker
      containers = client.listContainers(10, originalContainers.get(originalContainers.size() - 5).getName());
      assertEquals(4, containers.size());
      for (int i=0; i < 2; i++) {
        FilesContainer container = containers.get(i);
        assertEquals(originalContainers.get(originalContainers.size() - 4 + i).getName(), container.getName());
      }
     
      // Clean up
      for (int i=0; i < 20; i++) {
        assertTrue(client.deleteContainer("test_container_" + i));
View Full Code Here

  }
    }
   
    private FilesContainer getRootContainer( )
    {
  return new FilesContainer( _rootContainerName, _client );
    }
View Full Code Here

TOP

Related Classes of com.rackspacecloud.client.cloudfiles.FilesContainer

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.