mockMetadataGetError() — spring-boot Function Reference
Architecture documentation for the mockMetadataGetError() function in AbstractHttpClientMockTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 9acc0f89_ebcd_60b7_0695_b84ba1cdf83b["mockMetadataGetError()"] 18609c13_780f_967d_eb51_be6a1deef88f["mockHttpEntity()"] 9acc0f89_ebcd_60b7_0695_b84ba1cdf83b -->|calls| 18609c13_780f_967d_eb51_be6a1deef88f 90f0c7fe_8e2f_4b49_d17a_0951cc52a4b6["createJsonError()"] 9acc0f89_ebcd_60b7_0695_b84ba1cdf83b -->|calls| 90f0c7fe_8e2f_4b49_d17a_0951cc52a4b6 b8981815_9b0b_da79_3170_add5b97e0aa1["mockStatus()"] 9acc0f89_ebcd_60b7_0695_b84ba1cdf83b -->|calls| b8981815_9b0b_da79_3170_add5b97e0aa1 style 9acc0f89_ebcd_60b7_0695_b84ba1cdf83b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/init/AbstractHttpClientMockTests.java lines 104–109
protected void mockMetadataGetError(int status, String message) throws IOException, JSONException {
ClassicHttpResponse response = mock(ClassicHttpResponse.class);
mockHttpEntity(response, createJsonError(status, message).getBytes(), "application/json");
mockStatus(response, status);
given(this.http.executeOpen(any(HttpHost.class), isA(HttpGet.class), isNull())).willReturn(response);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does mockMetadataGetError() do?
mockMetadataGetError() is a function in the spring-boot codebase.
What does mockMetadataGetError() call?
mockMetadataGetError() calls 3 function(s): createJsonError, mockHttpEntity, mockStatus.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free