To ensure it works also for integer property.
This commit is contained in:
Kris De Volder
2020-05-21 16:00:47 -07:00
parent 42d34a533f
commit e87dee6954

View File

@@ -89,6 +89,18 @@ public class ApplicationYamlEditorTest extends AbstractPropsEditorTest {
}
////////////////////////////////////////////////////////////////////////////////////////
@Test public void GH_190_tolerate_placeholders_without_quotes_integer() throws Exception {
data("server.port", "java.lang.Integer", null, null);
Editor editor = harness.newEditor(
"server:\n" +
" port: @port@\n" +
"bad: problem"
);
editor.assertProblems(
"bad|Unknown"
);
}
@Test public void GH_190_tolerate_placeholders_without_quotes() throws Exception {
//See: https://github.com/spring-projects/sts4/issues/190