Skip to content

Commit

Permalink
fix: compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Nov 20, 2023
1 parent 7337039 commit 99322b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void query_success() {
when(accessTokenVerifier.verify(anyString())).thenReturn(Result.success(List.of("test-scope1")));
when(queryResolver.query(any(), eq(List.of("test-scope1")))).thenReturn(success(Stream.empty()));

var pres = new PresentationResponse(generateJwt(), new PresentationSubmission("id", "def-id", List.of(new InputDescriptorMapping("id", "ldp_vp", "$.verifiableCredentials[0]"))));
var pres = new PresentationResponse(new Object[] {generateJwt()}, new PresentationSubmission("id", "def-id", List.of(new InputDescriptorMapping("id", "ldp_vp", "$.verifiableCredentials[0]"))));
when(generator.createPresentation(anyList(), any())).thenReturn(Result.success(pres));

var response = controller().queryPresentation(createObjectBuilder().build(), generateJwt());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Result<PresentationResponse> createPresentation(List<VerifiableCredential
vpToken = registry.createPresentation(credentials, CredentialFormat.JWT);
}

var presentationResponse = new PresentationResponse(vpToken, null);
var presentationResponse = new PresentationResponse(new Object[] {vpToken}, null);
return Result.success(presentationResponse);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void query_success() {

private PresentationResponse createPresentationResponse() {
var submission = new PresentationSubmission("id", "def-id", List.of(new InputDescriptorMapping("input-id", "ldp-vp", "foo")));
return new PresentationResponse(TestData.VP_EXAMPLE, submission);
return new PresentationResponse(new Object[] {TestData.VP_EXAMPLE}, submission);
}


Expand Down

0 comments on commit 99322b1

Please sign in to comment.