andreaturli commented on this pull request.


> +
+   public void testList() {
+      final AtomicInteger found = new AtomicInteger(0);
+      
assertTrue(Iterables.all(api().list(Regions.EU_CENTRAL_1.getName()).concat(), 
new Predicate<VSwitch>() {
+         @Override
+         public boolean apply(VSwitch input) {
+            found.incrementAndGet();
+            return !isNullOrEmpty(input.id());
+         }
+      }), "All vSwitches must have at least the 'id' field populated");
+      assertTrue(found.get() > 0, "Expected some vSwitch to be returned");
+   }
+
+   private VSwitchApi api() {
+      return api.vSwitchApi();
+   }

added missing

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/443#discussion_r211981309

Reply via email to