323334353637383940
@Test public void shouldReturnListOfHotels() { List<Hotel> hotels = brokenOneServiceBean.getHotels(new BrokenFilter()); assertNotNull(hotels); }
293031323334353637
@Test public void shouldReturnListOfHotels() { List<Hotel> hotels = brokerTwoServiceBean.getHotels(new BrokenFilter()); assertNotNull(hotels); }
2930313233343536373839
List<Hotel> hotels = new ArrayList<>(); for (Broker broker : brokers) { List<Hotel> brokerHotels = broker.getHotels(new BrokenFilter()); for (Hotel hotel : brokerHotels) { if(hotel.getStars() == hotelIntegrationFilter.getStars()){ hotels.add(hotel);