// 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));