File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
spring-boot/src/test/java/org/springframework/boot/bind Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,12 @@ public void testBindWithDelimitedPrefixUsingDifferentDelimiter() throws Exceptio
164
164
assertEquals ("blah" , foo .name );
165
165
}
166
166
167
+ @ Test
168
+ public void propertyWithAllUpperCaseSuffixCanBeBound () throws Exception {
169
+ Foo foo = createFoo ("foo-bar-u-r-i:baz" );
170
+ assertEquals ("baz" , foo .fooBarURI );
171
+ }
172
+
167
173
private Foo createFoo (final String values ) throws Exception {
168
174
setupFactory ();
169
175
return bindFoo (values );
@@ -195,6 +201,8 @@ public static class Foo {
195
201
196
202
private String fooBar ;
197
203
204
+ private String fooBarURI ;
205
+
198
206
public String getSpringFooBaz () {
199
207
return this .spring_foo_baz ;
200
208
}
@@ -227,6 +235,14 @@ public void setFooBar(String fooBar) {
227
235
this .fooBar = fooBar ;
228
236
}
229
237
238
+ public String getFooBarURI () {
239
+ return this .fooBarURI ;
240
+ }
241
+
242
+ public void setFooBarURI (String fooBarURI ) {
243
+ this .fooBarURI = fooBarURI ;
244
+ }
245
+
230
246
}
231
247
232
248
}
You can’t perform that action at this time.
0 commit comments