Skip to content

Commit 46a0aaa

Browse files
izeyesnicoll
authored andcommitted
Add a missing test for "Fix properties parsing for comment chars"
Closes gh-8699
1 parent 8bfd42e commit 46a0aaa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-boot/src/test/java/org/springframework/boot/env/OriginTrackedPropertiesLoaderTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ public void getPropertyWithValueComment() throws Exception {
111111
assertThat(getLocation(value)).isEqualTo("36:29");
112112
}
113113

114+
@Test
115+
public void getPropertyWithMultilineImmediateBang() {
116+
OriginTrackedValue value = this.properties.get("test-multiline-immediate-bang");
117+
assertThat(getValue(value)).isEqualTo("!foo");
118+
assertThat(getLocation(value)).isEqualTo("39:1");
119+
}
120+
114121
@Test
115122
public void getPropertyWithCarriageReturn() throws Exception {
116123
OriginTrackedValue value = this.properties.get("test-return-property");

0 commit comments

Comments
 (0)