> @@ -129,4 +130,21 @@ public void forwardingRules() {
>        }
>        assertEquals(count, 2);
>     }
> +
> +   public void targetInstances() {
> +      Iterator<ListPage<TargetInstance>> pageIterator = 
> api().targetInstances(maxResults(1));
> +      // make sure that in spite of having only one result per page we get at
> +      // least two results
> +      int count = 0;
> +      for (; count < 2 && pageIterator.hasNext();) {
> +         ListPage<TargetInstance> result = pageIterator.next();
> +         if (!result.isEmpty()) {
> +            count++;
> +         }
> +      }
> +      if (count < 2) {
> +         throw new SkipException("Not enough target instances");

Skip. The code didn't fail, it just didn't have enough data to say if it
works or not.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/100/files#r20979020

Reply via email to