@Test public void verifyServices() { { Assert.assertFalse(Conditions.verifyServices(Lists.newArrayList(new Service(), new Service(Services.newServiceId())))); } { Assert.assertTrue(Conditions.verifyServices(Lists.newArrayList(new Service(Services.newServiceId()), new Service(Services.newServiceId())))); } }
public static boolean verifyServices(final Collection<Service> services) { if (CollectionUtils.isEmpty(services)) { return false; } for (final Service service : services) { if (!verifyService(service)) { return false; } } return true; }
Conditions { public static boolean verifyServices(final Collection<Service> services) { if (CollectionUtils.isEmpty(services)) { return false; } for (final Service service : services) { if (!verifyService(service)) { return false; } } return true; } }
Conditions { public static boolean verifyServices(final Collection<Service> services) { if (CollectionUtils.isEmpty(services)) { return false; } for (final Service service : services) { if (!verifyService(service)) { return false; } } return true; }  }
Conditions { public static boolean verifyServices(final Collection<Service> services) { if (CollectionUtils.isEmpty(services)) { return false; } for (final Service service : services) { if (!verifyService(service)) { return false; } } return true; }  static boolean verifyInstance(final Instance instance); static boolean verifyInstances(final Instance[] instances); static boolean verifyInstances(final Collection<Instance> instances); static boolean verifyService(final Service service); static boolean verifyServices(final Collection<Service> services); }
Conditions { public static boolean verifyServices(final Collection<Service> services) { if (CollectionUtils.isEmpty(services)) { return false; } for (final Service service : services) { if (!verifyService(service)) { return false; } } return true; }  static boolean verifyInstance(final Instance instance); static boolean verifyInstances(final Instance[] instances); static boolean verifyInstances(final Collection<Instance> instances); static boolean verifyService(final Service service); static boolean verifyServices(final Collection<Service> services);  }