@@ -21,38 +21,38 @@ public class JsonPropertiesIntegrationTest {
2121 private CustomJsonProperties customJsonProperties ;
2222
2323 @ Test
24- public void givenJsonPropertySource_whenPropertySourceFactoryUsed_thenLoadFlatValues () {
24+ public void whenPropertiesLoadedViaJsonPropertySource_thenLoadFlatValues () {
2525 Assert .assertEquals ("mailer@mail.com" , jsonProperties .getHost ());
2626 Assert .assertEquals (9090 , jsonProperties .getPort ());
2727 Assert .assertTrue (jsonProperties .isResend ());
2828 }
2929
3030 @ Test
31- public void givenJsonPropertySource_whenPropertySourceFactoryUsed_thenLoadListValues () {
31+ public void whenPropertiesLoadedViaJsonPropertySource_thenLoadListValues () {
3232 Assert .assertThat (jsonProperties .getTopics (), Matchers .is (Arrays .asList ("spring" , "boot" )));
3333 }
3434
3535 @ Test
36- public void givenJsonPropertySource_whenPropertySourceFactoryUsed_thenNestedValuesLoadedAsMap () {
36+ public void whenPropertiesLoadedViaJsonPropertySource_thenNestedLoadedAsMap () {
3737 Assert .assertEquals ("sender" , jsonProperties .getSender ()
3838 .get ("name" ));
3939 Assert .assertEquals ("street" , jsonProperties .getSender ()
4040 .get ("address" ));
4141 }
4242
4343 @ Test
44- public void givenCustomJsonPropertySource_whenLoadedIntoEnvironment_thenFlatValuesPopulated () {
45- Assert .assertEquals ("mailer.custom @mail.com" , customJsonProperties .getHost ());
46- Assert .assertEquals (8081 , customJsonProperties .getPort ());
44+ public void whenLoadedIntoEnvironment_thenFlatValuesPopulated () {
45+ Assert .assertEquals ("mailer@mail.com" , customJsonProperties .getHost ());
46+ Assert .assertEquals (9090 , customJsonProperties .getPort ());
4747 Assert .assertTrue (customJsonProperties .isResend ());
4848 }
4949
5050 @ Test
51- public void givenCustomJsonPropertySource_whenLoadedIntoEnvironment_thenValuesLoadedIntoClassObject () {
51+ public void whenLoadedIntoEnvironment_thenValuesLoadedIntoClassObject () {
5252 Assert .assertNotNull (customJsonProperties .getSender ());
53- Assert .assertEquals ("sender.custom " , customJsonProperties .getSender ()
53+ Assert .assertEquals ("sender" , customJsonProperties .getSender ()
5454 .getName ());
55- Assert .assertEquals ("street.custom " , customJsonProperties .getSender ()
55+ Assert .assertEquals ("street" , customJsonProperties .getSender ()
5656 .getAddress ());
5757 }
5858
0 commit comments