mockProjectGenerationError() — spring-boot Function Reference
Architecture documentation for the mockProjectGenerationError() function in AbstractHttpClientMockTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f["mockProjectGenerationError()"] 7a6e1e76_6c61_3e09_62a3_66b05b5870dd["mockSuccessfulMetadataGet()"] 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f -->|calls| 7a6e1e76_6c61_3e09_62a3_66b05b5870dd 18609c13_780f_967d_eb51_be6a1deef88f["mockHttpEntity()"] 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f -->|calls| 18609c13_780f_967d_eb51_be6a1deef88f 90f0c7fe_8e2f_4b49_d17a_0951cc52a4b6["createJsonError()"] 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f -->|calls| 90f0c7fe_8e2f_4b49_d17a_0951cc52a4b6 b8981815_9b0b_da79_3170_add5b97e0aa1["mockStatus()"] 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f -->|calls| b8981815_9b0b_da79_3170_add5b97e0aa1 style 713a8d8a_a9f2_ce1b_3af6_97ecfdb38d5f 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 95–102
protected void mockProjectGenerationError(int status, @Nullable String message) throws IOException, JSONException {
// Required for project generation as the metadata is read first
mockSuccessfulMetadataGet(false);
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 mockProjectGenerationError() do?
mockProjectGenerationError() is a function in the spring-boot codebase.
What does mockProjectGenerationError() call?
mockProjectGenerationError() calls 4 function(s): createJsonError, mockHttpEntity, mockStatus, mockSuccessfulMetadataGet.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free