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

See gh-5330
pull/6203/head
Andy Wilkinson 9 years ago
parent c1fcecb415
commit 9d194c2d43

@ -164,6 +164,12 @@ public class PropertiesConfigurationFactoryTests {
assertEquals("blah", foo.name); 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 { private Foo createFoo(final String values) throws Exception {
setupFactory(); setupFactory();
return bindFoo(values); return bindFoo(values);
@ -195,6 +201,8 @@ public class PropertiesConfigurationFactoryTests {
private String fooBar; private String fooBar;
private String fooBarURI;
public String getSpringFooBaz() { public String getSpringFooBaz() {
return this.spring_foo_baz; return this.spring_foo_baz;
} }
@ -227,6 +235,14 @@ public class PropertiesConfigurationFactoryTests {
this.fooBar = fooBar; this.fooBar = fooBar;
} }
public String getFooBarURI() {
return this.fooBarURI;
}
public void setFooBarURI(String fooBarURI) {
this.fooBarURI = fooBarURI;
}
} }
} }

Loading…
Cancel
Save