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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user