givenClientWillReturnResponse() — spring-boot Function Reference
Architecture documentation for the givenClientWillReturnResponse() function in HttpClientTransportTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca["givenClientWillReturnResponse()"] 7a0b6a98_1726_85c2_dd87_f060025de0a4["getShouldExecuteHttpGet()"] 7a0b6a98_1726_85c2_dd87_f060025de0a4 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 861d137d_3d68_228c_3c2b_05441bcd971c["postShouldExecuteHttpPost()"] 861d137d_3d68_228c_3c2b_05441bcd971c -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca c32b3cb4_03b6_1cb3_a8ce_ab6a127b1ed6["postWithRegistryAuthShouldExecuteHttpPostWithHeader()"] c32b3cb4_03b6_1cb3_a8ce_ab6a127b1ed6 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 5440c197_bd49_c17d_b526_cd9df1165c82["postWithEmptyRegistryAuthShouldExecuteHttpPostWithoutHeader()"] 5440c197_bd49_c17d_b526_cd9df1165c82 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 82b6d6e1_ed40_be70_78e8_b37e675b3ede["postWithJsonContentShouldExecuteHttpPost()"] 82b6d6e1_ed40_be70_78e8_b37e675b3ede -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 4021083e_f823_1747_e4ea_ffb13b7f3fd9["postWithArchiveContentShouldExecuteHttpPost()"] 4021083e_f823_1747_e4ea_ffb13b7f3fd9 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca aa727c70_66f6_1dff_b93e_94e34914baa9["putWithJsonContentShouldExecuteHttpPut()"] aa727c70_66f6_1dff_b93e_94e34914baa9 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca c7d75a3c_c8d5_cd21_ee0e_14205b93b867["putWithArchiveContentShouldExecuteHttpPut()"] c7d75a3c_c8d5_cd21_ee0e_14205b93b867 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 365ca505_6571_48cb_bb0a_5879369c504a["deleteShouldExecuteHttpDelete()"] 365ca505_6571_48cb_bb0a_5879369c504a -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 2fb1e90d_daa6_0be4_9ef6_5ab647d04c68["executeWhenResponseIsIn400RangeShouldThrowDockerException()"] 2fb1e90d_daa6_0be4_9ef6_5ab647d04c68 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca ba6c690c_3e80_f3a0_fad5_c6b79920a467["executeWhenResponseIsIn500RangeWithNoContentShouldThrowDockerException()"] ba6c690c_3e80_f3a0_fad5_c6b79920a467 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca 24e7a42f_9b91_f13f_7f39_afc22c9f45c2["executeWhenResponseIsIn500RangeWithMessageShouldThrowDockerException()"] 24e7a42f_9b91_f13f_7f39_afc22c9f45c2 -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca d68d6b5e_3b3e_5893_8eab_70dc97528c2f["executeWhenResponseIsIn500RangeWithOtherContentShouldThrowDockerException()"] d68d6b5e_3b3e_5893_8eab_70dc97528c2f -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca a1a4bef6_66b3_c082_d86d_b10d129d31de["shouldReturnErrorsAndMessage()"] a1a4bef6_66b3_c082_d86d_b10d129d31de -->|calls| 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca style 674ffdc0_fae2_e6cd_cd20_ae283d48a4ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransportTests.java lines 361–365
private void givenClientWillReturnResponse() throws IOException {
given(this.client.executeOpen(any(HttpHost.class), any(HttpUriRequest.class), isNull()))
.willReturn(this.response);
given(this.response.getEntity()).willReturn(this.entity);
}
Domain
Subdomains
Called By
- deleteShouldExecuteHttpDelete()
- executeWhenResponseIsIn400RangeShouldThrowDockerException()
- executeWhenResponseIsIn500RangeWithMessageShouldThrowDockerException()
- executeWhenResponseIsIn500RangeWithNoContentShouldThrowDockerException()
- executeWhenResponseIsIn500RangeWithOtherContentShouldThrowDockerException()
- getShouldExecuteHttpGet()
- postShouldExecuteHttpPost()
- postWithArchiveContentShouldExecuteHttpPost()
- postWithEmptyRegistryAuthShouldExecuteHttpPostWithoutHeader()
- postWithJsonContentShouldExecuteHttpPost()
- postWithRegistryAuthShouldExecuteHttpPostWithHeader()
- putWithArchiveContentShouldExecuteHttpPut()
- putWithJsonContentShouldExecuteHttpPut()
- shouldReturnContentIfProxyAuthError()
- shouldReturnErrorsAndMessage()
Source
Frequently Asked Questions
What does givenClientWillReturnResponse() do?
givenClientWillReturnResponse() is a function in the spring-boot codebase.
What calls givenClientWillReturnResponse()?
givenClientWillReturnResponse() is called by 15 function(s): deleteShouldExecuteHttpDelete, executeWhenResponseIsIn400RangeShouldThrowDockerException, executeWhenResponseIsIn500RangeWithMessageShouldThrowDockerException, executeWhenResponseIsIn500RangeWithNoContentShouldThrowDockerException, executeWhenResponseIsIn500RangeWithOtherContentShouldThrowDockerException, getShouldExecuteHttpGet, postShouldExecuteHttpPost, postWithArchiveContentShouldExecuteHttpPost, and 7 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free