Skip to content

Commit 5f88d11

Browse files
Merge pull request #176 from onfido/release-upgrade
Refresh onfido-java after onfido-openapi-spec update (4204f00)
2 parents 31e92e3 + 45acf99 commit 5f88d11

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
44
"short_sha": "4204f00",
55
"long_sha": "4204f00a2c7f0f5bd61da3b5442d8eb613418e9e",
6-
"version": ""
6+
"version": "v6.0.0"
77
},
88
"release": "v7.0.0"
99
}

MIGRATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ensuring a smooth transition between versions.
1313
- **All API methods**: All API method calls now use request builder pattern with `.execute()`
1414
- This change enables backward compatibility when new optional parameters are added
1515
- Example migration:
16+
1617
```java
1718
// Before (v6.x)
1819
List<WorkflowRun> runs = api.listWorkflowRuns(applicantId, status, page, perPage);
@@ -25,6 +26,7 @@ ensuring a smooth transition between versions.
2526
.perPage(perPage)
2627
.execute();
2728
```
29+
2830
- Documents
2931
- Driving licence information properties removed from general `DocumentProperties`
3032
and moved to new `DocumentPropertiesWithDrivingLicenceInformation` class

src/test/java/com/onfido/integration/WorkflowRunTest.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,15 @@ public void findWorkflowRunTest() throws Exception {
7474

7575
@Test
7676
public void evidenceWorkflowRunTest() throws Exception {
77-
byte[] byteArray = onfido.downloadSignedEvidenceFile(workflowRunId).execute().getByteArray();
77+
FileTransfer evidenceFile =
78+
(FileTransfer)
79+
repeatRequestUntilHttpCodeChanges(
80+
"downloadSignedEvidenceFile",
81+
new UUID[] {workflowRunId},
82+
MAX_RETRIES,
83+
SLEEP_TIME * 2);
84+
85+
byte[] byteArray = evidenceFile.getByteArray();
7886

7987
Assertions.assertEquals("%PDF", new String(byteArray, 0, 4));
8088
Assertions.assertTrue(byteArray.length > 0);
@@ -118,7 +126,7 @@ public void findTimelineFileTest() throws Exception {
118126
"findTimelineFile",
119127
new UUID[] {workflowRunId, timelineFileId},
120128
MAX_RETRIES,
121-
SLEEP_TIME * 2);
129+
SLEEP_TIME);
122130

123131
byte[] byteArray = download.getByteArray();
124132

0 commit comments

Comments
 (0)