diff --git a/src/test/java/it/gov/pagopa/apiconfig/selfcareintegration/util/TestUtil.java b/src/test/java/it/gov/pagopa/apiconfig/selfcareintegration/util/TestUtil.java index 85c782c..4ee30bb 100644 --- a/src/test/java/it/gov/pagopa/apiconfig/selfcareintegration/util/TestUtil.java +++ b/src/test/java/it/gov/pagopa/apiconfig/selfcareintegration/util/TestUtil.java @@ -59,7 +59,7 @@ public static StationDetailsList getMockStationDetailsList() throws IOException List stationDetails = List.of(getMockStationDetails()); return StationDetailsList.builder() .stationsDetailsList(stationDetails) - .pageInfo(getMockPageInfo(0, 1, 10, stationDetails.size())) + .pageInfo(getMockPageInfo(1, 10, stationDetails.size())) .build(); } @@ -67,7 +67,7 @@ public static CreditorInstitutionDetails getMockCreditorInstitutionDetails() thr List creditorInstitutionDetails = List.of(getMockCreditorInstitutionDetail()); return CreditorInstitutionDetails.builder() .creditorInstitutions(creditorInstitutionDetails) - .pageInfo(getMockPageInfo(0, 1, 10, creditorInstitutionDetails.size())) + .pageInfo(getMockPageInfo(1, 10, creditorInstitutionDetails.size())) .build(); } @@ -82,11 +82,11 @@ public static ChannelDetailsList getMockChannelDetailsList() throws IOException List channelDetails = List.of(getMockChannelDetails()); return ChannelDetailsList.builder() .channelsDetailsList(channelDetails) - .pageInfo(getMockPageInfo(0, 1, 10, channelDetails.size())) + .pageInfo(getMockPageInfo(1, 10, channelDetails.size())) .build(); } - public static PageInfo getMockPageInfo(int page, int totalPages, int limit, int size) { + public static PageInfo getMockPageInfo(int totalPages, int limit, int size) { return PageInfo.builder().page(0).limit(limit).totalPages(totalPages).itemsFound(size).build(); } @@ -122,7 +122,7 @@ public static Stazioni getMockStazioni() throws IOException { return getMockRequest("request/get_station_ok1.json", Stazioni.class); } - public static List getMockPaStazionePa(Boolean enabledStation) throws IOException { + public static List getMockPaStazionePa(Boolean enabledStation) { List paStazionePa = new ArrayList<>(); PaStazionePa enabled = PaStazionePa.builder() .pa(Pa.builder() @@ -381,7 +381,7 @@ public static List getMockIbanMaster2() { ); } - public static IbansList getMockIbanList() throws IOException { + public static IbansList getMockIbanList() { return IbansList.builder() .ibans(List.of( IbanDetails.builder()