Skip to content

Commit e87dee6

Browse files
committed
Add one more test case for #190
To ensure it works also for integer property.
1 parent 42d34a5 commit e87dee6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/test/ApplicationYamlEditorTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ public void cleanups() {
8989
}
9090

9191
////////////////////////////////////////////////////////////////////////////////////////
92+
93+
@Test public void GH_190_tolerate_placeholders_without_quotes_integer() throws Exception {
94+
data("server.port", "java.lang.Integer", null, null);
95+
Editor editor = harness.newEditor(
96+
"server:\n" +
97+
" port: @port@\n" +
98+
"bad: problem"
99+
);
100+
editor.assertProblems(
101+
"bad|Unknown"
102+
);
103+
}
92104

93105
@Test public void GH_190_tolerate_placeholders_without_quotes() throws Exception {
94106
//See: https://github.com/spring-projects/sts4/issues/190

0 commit comments

Comments
 (0)