Skip to content

Commit c990f9d

Browse files
committed
DMP-5252-ARM-5-2-Upgrade
Added no sonar to fix sonar complaint of duplicate code
1 parent 9f592ca commit c990f9d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/integrationTest/java/uk/gov/hmcts/darts/arm/service/ArmApiServiceVersionFiveTwoIntTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void downloadArmData_ShouldDownloadData() throws FileNotDownloadedException, IOE
163163
feign.Response.builder()
164164
.status(200)
165165
.reason("OK")
166-
.headers(java.util.Collections.emptyMap()) // Fix: use empty map instead of null
166+
.headers(java.util.Collections.emptyMap())
167167
.body(binaryData)
168168
.request(feign.Request.create(
169169
feign.Request.HttpMethod.GET,
@@ -200,10 +200,6 @@ private ArmTokenResponse getArmTokenResponse() {
200200
.build();
201201
}
202202

203-
private String getDownloadPath(String downloadPath, String cabinetId, String recordId, String fileId) {
204-
return downloadPath.replace("{cabinet_id}", cabinetId).replace("{record_id}", recordId).replace("{file_id}", fileId);
205-
}
206-
207203
private String formatDateTime(OffsetDateTime offsetDateTime) {
208204
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX");
209205
return offsetDateTime.format(dateTimeFormatter);

0 commit comments

Comments
 (0)