mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Change Spring Boot CLI init command docs default build system to gradle"
See gh-40603
This commit is contained in:
parent
1a786fc788
commit
64b302032c
@ -344,7 +344,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
|
|||||||
void parseTypeOnly() throws Exception {
|
void parseTypeOnly() throws Exception {
|
||||||
this.handler.disableProjectGeneration();
|
this.handler.disableProjectGeneration();
|
||||||
this.command.run("-t=ant-project");
|
this.command.run("-t=ant-project");
|
||||||
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("maven");
|
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("gradle");
|
||||||
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("project");
|
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("project");
|
||||||
assertThat(this.handler.lastRequest.isDetectType()).isFalse();
|
assertThat(this.handler.lastRequest.isDetectType()).isFalse();
|
||||||
assertThat(this.handler.lastRequest.getType()).isEqualTo("ant-project");
|
assertThat(this.handler.lastRequest.getType()).isEqualTo("ant-project");
|
||||||
@ -364,7 +364,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
|
|||||||
void parseFormatOnly() throws Exception {
|
void parseFormatOnly() throws Exception {
|
||||||
this.handler.disableProjectGeneration();
|
this.handler.disableProjectGeneration();
|
||||||
this.command.run("--format=web");
|
this.command.run("--format=web");
|
||||||
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("maven");
|
assertThat(this.handler.lastRequest.getBuild()).isEqualTo("gradle");
|
||||||
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("web");
|
assertThat(this.handler.lastRequest.getFormat()).isEqualTo("web");
|
||||||
assertThat(this.handler.lastRequest.isDetectType()).isTrue();
|
assertThat(this.handler.lastRequest.isDetectType()).isTrue();
|
||||||
assertThat(this.handler.lastRequest.getType()).isNull();
|
assertThat(this.handler.lastRequest.getType()).isNull();
|
||||||
|
Loading…
Reference in New Issue
Block a user