Skip to content

Commit

Permalink
[VAS-912] fixed code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella committed May 21, 2024
1 parent 5ee3e40 commit 839d1ae
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ public static StationDetailsList getMockStationDetailsList() throws IOException
List<StationDetails> stationDetails = List.of(getMockStationDetails());
return StationDetailsList.builder()
.stationsDetailsList(stationDetails)
.pageInfo(getMockPageInfo(0, 1, 10, stationDetails.size()))
.pageInfo(getMockPageInfo(1, 10, stationDetails.size()))
.build();
}

public static CreditorInstitutionDetails getMockCreditorInstitutionDetails() throws IOException {
List<CreditorInstitutionDetail> creditorInstitutionDetails = List.of(getMockCreditorInstitutionDetail());
return CreditorInstitutionDetails.builder()
.creditorInstitutions(creditorInstitutionDetails)
.pageInfo(getMockPageInfo(0, 1, 10, creditorInstitutionDetails.size()))
.pageInfo(getMockPageInfo(1, 10, creditorInstitutionDetails.size()))
.build();
}

Expand All @@ -82,11 +82,11 @@ public static ChannelDetailsList getMockChannelDetailsList() throws IOException
List<ChannelDetails> 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();
}

Expand Down Expand Up @@ -122,7 +122,7 @@ public static Stazioni getMockStazioni() throws IOException {
return getMockRequest("request/get_station_ok1.json", Stazioni.class);
}

public static List<PaStazionePa> getMockPaStazionePa(Boolean enabledStation) throws IOException {
public static List<PaStazionePa> getMockPaStazionePa(Boolean enabledStation) {
List<PaStazionePa> paStazionePa = new ArrayList<>();
PaStazionePa enabled = PaStazionePa.builder()
.pa(Pa.builder()
Expand Down Expand Up @@ -381,7 +381,7 @@ public static List<IbanMaster> getMockIbanMaster2() {
);
}

public static IbansList getMockIbanList() throws IOException {
public static IbansList getMockIbanList() {
return IbansList.builder()
.ibans(List.of(
IbanDetails.builder()
Expand Down

0 comments on commit 839d1ae

Please sign in to comment.