> @@ -98,7 +99,13 @@ public void testListWithOptions() throws Exception {
> String lexicographicallyBeforeName = name.substring(0, name.length() - 1);
> for (String regionId : regions) {
> ListContainerOptions options = ListContainerOptions.Builder.marker(lexicographicallyBeforeName);
> - Container container = api.getContainerApi(regionId).list(options).get(0);
> + Container container = api.getContainerApi(regionId).list(options).firstMatch(new
Predicate<Container>() {
> + @Override
> + public boolean apply(Container container) {
> + return container.getName().equals(name);
> + }
> + }).get();
> + assertNotNull(container);
> assertEquals(container.getName(), name);
This is now always true.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/800/files#r34103986
|