|
|
@ -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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|