BAEL-2855 Add a new section in ConfigurationProperties article (#6808)

This commit is contained in:
kwoyke
2019-04-24 20:02:04 +02:00
committed by Grzegorz Piwowarek
parent 230725102b
commit d5ba7790ef
5 changed files with 52 additions and 0 deletions
@@ -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());
}
}