Add test to verify binding of a property with all upper-case suffix

See gh-5330
This commit is contained in:
Andy Wilkinson 2016-06-20 20:23:18 +01:00
parent c1fcecb415
commit 9d194c2d43

View File

@ -164,6 +164,12 @@ public class PropertiesConfigurationFactoryTests {
assertEquals("blah", foo.name);
}
@Test
public void propertyWithAllUpperCaseSuffixCanBeBound() throws Exception {
Foo foo = createFoo("foo-bar-u-r-i:baz");
assertEquals("baz", foo.fooBarURI);
}
private Foo createFoo(final String values) throws Exception {
setupFactory();
return bindFoo(values);
@ -195,6 +201,8 @@ public class PropertiesConfigurationFactoryTests {
private String fooBar;
private String fooBarURI;
public String getSpringFooBaz() {
return this.spring_foo_baz;
}
@ -227,6 +235,14 @@ public class PropertiesConfigurationFactoryTests {
this.fooBar = fooBar;
}
public String getFooBarURI() {
return this.fooBarURI;
}
public void setFooBarURI(String fooBarURI) {
this.fooBarURI = fooBarURI;
}
}
}