Skip to content

Commit e202251

Browse files
committed
fixed test expectations
1 parent 371c2ee commit e202251

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/com/tecacet/finance/service/calendar/EnricoHolidayServiceTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ public class EnricoHolidayServiceTest {
2121
@Test
2222
public void getSupportedCountries() throws IOException {
2323
List<HolidaySupport> countries = holidayService.getSupportedCountries();
24-
assertEquals(56, countries.size());
25-
HolidaySupport holidaySupport = countries.get(1);
24+
assertEquals(60, countries.size());
25+
HolidaySupport holidaySupport = countries.stream().filter(
26+
c -> c.getCountry().getCountryCode().equals("aus")
27+
).findFirst().get();
2628
Country country = holidaySupport.getCountry();
2729
assertEquals("aus", country.getCountryCode());
2830
assertEquals("Australia", country.getCountryName());

0 commit comments

Comments
 (0)