generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCD-5367 Task Completion - CCD Send Header from callback response to …
…EXUI (#297) * CCD-5367 add Client-Context into response header for aboutToSubmit and submitted * CCD-5367 correct json format * CCD-5367 change to json object * CCD-5367 add custom headers into POST or PUT callback response * CCD-5367 add custom headers into POST callback response only * CCD-5367 add coverage for null custom headers check * CCD-5367 fix test cases, provide empty headers for test case * CCD-5367 provide Base64 encoded header values for Client-Context header * CCD-5367 update/correct Base64 test values * CCD-5367 add header value Base64 test value * CCD-5367 provide Base64 encoded header values for Client-Context header * CCD-5367 tweak Base64 encoded header values for Client-Context header - valid json * CCD-5367 tweak Base64 encoded header values for Client-Context header - valid json * CCD-5367 tweak Base64 encoded header values for Client-Context header - valid json
- Loading branch information
1 parent
6a17d69
commit a0c6203
Showing
7 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/test/java/uk/gov/hmcts/reform/ccd/test/stubs/service/util/HeadersProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package uk.gov.hmcts.reform.ccd.test.stubs.service.util; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public interface HeadersProvider { | ||
Map<String, List<String>> getHeaders(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/java/uk/gov/hmcts/reform/ccd/test/stubs/service/util/HttpHeadersProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package uk.gov.hmcts.reform.ccd.test.stubs.service.util; | ||
|
||
import java.net.http.HttpHeaders; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class HttpHeadersProvider implements HeadersProvider { | ||
private final HttpHeaders httpHeaders; | ||
|
||
public HttpHeadersProvider(HttpHeaders httpHeaders) { | ||
this.httpHeaders = httpHeaders; | ||
} | ||
|
||
@Override | ||
public Map<String, List<String>> getHeaders() { | ||
return httpHeaders.map(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters