Skip to content

Commit 91c2853

Browse files
committed
Rename id of YamlFormat
Signed-off-by: sijun-yang <[email protected]>
1 parent cd2a07f commit 91c2853

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

initializr-generator-test/src/main/java/io/spring/initializr/generator/test/InitializrMetadataTestBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public InitializrMetadataTestBuilder addLanguage(String id, boolean defaultValue
168168
}
169169

170170
public InitializrMetadataTestBuilder addDefaultConfigurationFileFormats() {
171-
return addConfigurationFileFormats("properties", true).addConfigurationFileFormats("yml", false);
171+
return addConfigurationFileFormats("properties", true).addConfigurationFileFormats("yaml", false);
172172
}
173173

174174
public InitializrMetadataTestBuilder addConfigurationFileFormats(String id, boolean defaultValue) {

initializr-generator/src/main/java/io/spring/initializr/generator/configuration/format/yaml/YamlFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public final class YamlFormat implements ConfigurationFileFormat {
2828
/**
2929
* YAML {@link ConfigurationFileFormat} identifier.
3030
*/
31-
public static final String ID = "yml";
31+
public static final String ID = "yaml";
3232

3333
@Override
3434
public String id() {

initializr-web/src/test/java/io/spring/initializr/web/controller/ProjectGenerationControllerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void simpleZipProjectWithPropertiesFormat() {
7474

7575
@Test
7676
void simpleZipProjectWithYAMLFormat() {
77-
ResponseEntity<byte[]> entity = downloadArchive("/starter.zip?dependencies=web&&configurationFileFormat=yml");
77+
ResponseEntity<byte[]> entity = downloadArchive("/starter.zip?dependencies=web&&configurationFileFormat=yaml");
7878
assertArchiveResponseHeaders(entity, MediaType.valueOf("application/zip"), "demo.zip");
7979
ProjectStructure project = projectFromArchive(entity.getBody());
8080
assertDefaultProject(project);

initializr-web/src/test/resources/application-test-default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ initializr:
155155
id: properties
156156
default: true
157157
- name: YAML
158-
id: yml
158+
id: yaml
159159
default: false
160160
bootVersions:
161161
- name : Latest SNAPSHOT

initializr-web/src/test/resources/metadata/config/test-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
},
330330
{
331331
"default": false,
332-
"id": "yml",
332+
"id": "yaml",
333333
"name": "YAML"
334334
}
335335
],

initializr-web/src/test/resources/metadata/test-default-2.0.0-ssl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"name": "Properties"
159159
},
160160
{
161-
"id": "yml",
161+
"id": "yaml",
162162
"name": "YAML"
163163
}
164164
]

initializr-web/src/test/resources/metadata/test-default-2.0.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"name": "Properties"
159159
},
160160
{
161-
"id": "yml",
161+
"id": "yaml",
162162
"name": "YAML"
163163
}
164164
]

initializr-web/src/test/resources/metadata/test-default-2.1.0-ssl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"name": "Properties"
197197
},
198198
{
199-
"id": "yml",
199+
"id": "yaml",
200200
"name": "YAML"
201201
}
202202
]

initializr-web/src/test/resources/metadata/test-default-2.1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"name": "Properties"
197197
},
198198
{
199-
"id": "yml",
199+
"id": "yaml",
200200
"name": "YAML"
201201
}
202202
]

initializr-web/src/test/resources/metadata/test-default-2.2.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"name": "Properties"
197197
},
198198
{
199-
"id": "yml",
199+
"id": "yaml",
200200
"name": "YAML"
201201
}
202202
]

0 commit comments

Comments
 (0)