mockSuccessfulProjectGeneration() — spring-boot Function Reference
Architecture documentation for the mockSuccessfulProjectGeneration() function in AbstractHttpClientMockTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb["mockSuccessfulProjectGeneration()"] 7a6e1e76_6c61_3e09_62a3_66b05b5870dd["mockSuccessfulMetadataGet()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| 7a6e1e76_6c61_3e09_62a3_66b05b5870dd 18609c13_780f_967d_eb51_be6a1deef88f["mockHttpEntity()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| 18609c13_780f_967d_eb51_be6a1deef88f b8981815_9b0b_da79_3170_add5b97e0aa1["mockStatus()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| b8981815_9b0b_da79_3170_add5b97e0aa1 46aa6380_8466_75b6_c7d2_c024e9eb605d["contentDispositionValue()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| 46aa6380_8466_75b6_c7d2_c024e9eb605d fec5dce5_f71d_a435_ceca_142003dad82b["mockHttpHeader()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| fec5dce5_f71d_a435_ceca_142003dad82b 859940c6_d79a_703d_1e30_5e224432f658["getForNonMetadata()"] 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb -->|calls| 859940c6_d79a_703d_1e30_5e224432f658 style 85552bae_8ab3_2fb8_e704_1e9bbf5a6bcb 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 84–93
protected void mockSuccessfulProjectGeneration(MockHttpProjectGenerationRequest request) throws IOException {
// Required for project generation as the metadata is read first
mockSuccessfulMetadataGet(false);
ClassicHttpResponse response = mock(ClassicHttpResponse.class);
mockHttpEntity(response, request.content, request.contentType);
mockStatus(response, 200);
String header = (request.fileName != null) ? contentDispositionValue(request.fileName) : null;
mockHttpHeader(response, "Content-Disposition", header);
given(this.http.executeOpen(any(HttpHost.class), argThat(getForNonMetadata()), isNull())).willReturn(response);
}
Domain
Subdomains
Calls
- contentDispositionValue()
- getForNonMetadata()
- mockHttpEntity()
- mockHttpHeader()
- mockStatus()
- mockSuccessfulMetadataGet()
Source
Frequently Asked Questions
What does mockSuccessfulProjectGeneration() do?
mockSuccessfulProjectGeneration() is a function in the spring-boot codebase.
What does mockSuccessfulProjectGeneration() call?
mockSuccessfulProjectGeneration() calls 6 function(s): contentDispositionValue, getForNonMetadata, mockHttpEntity, mockHttpHeader, mockStatus, mockSuccessfulMetadataGet.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free