BAEL-2855 Add a new section in ConfigurationProperties article (#6808)
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
230725102b
commit
d5ba7790ef
@@ -53,4 +53,11 @@ public class ConfigPropertiesIntegrationTest {
|
||||
Assert.assertEquals("Incorrectly bound object property, username", "john", credentials.getUsername());
|
||||
Assert.assertEquals("Incorrectly bound object property, password", "password", credentials.getPassword());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenBeanMethodAnnotatedThenPropertiesCorrectlyBound(){
|
||||
Item item = properties.item();
|
||||
Assert.assertEquals("Incorrectly bound object property, item.name","Test item name", item.getName());
|
||||
Assert.assertEquals("Incorrectly bound object property, item.size", 21, item.getSize());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,3 +17,6 @@ mail.credentials.username=john
|
||||
mail.credentials.password=password
|
||||
mail.credentials.authMethod=SHA1
|
||||
|
||||
#Bean method properties
|
||||
item.name=Test item name
|
||||
item.size=21
|
||||
|
||||
Reference in New Issue
Block a user