@@ -388,10 +388,10 @@ public void specificResource() throws Exception {
388388 this .initializer .onApplicationEvent (this .event );
389389 String property = this .environment .getProperty ("my.property" );
390390 assertThat (property , equalTo ("fromspecificlocation" ));
391- assertThat (this .environment , containsProperySource ("applicationConfig: "
391+ assertThat (this .environment , containsPropertySource ("applicationConfig: "
392392 + "[classpath:specificlocation.properties]" ));
393393 // The default property source is still there
394- assertThat (this .environment , containsProperySource ("applicationConfig: "
394+ assertThat (this .environment , containsPropertySource ("applicationConfig: "
395395 + "[classpath:/application.properties]" ));
396396 assertThat (this .environment .getProperty ("foo" ), equalTo ("bucket" ));
397397 }
@@ -402,7 +402,7 @@ public void specificResourceAsFile() throws Exception {
402402 EnvironmentTestUtils .addEnvironment (this .environment , "spring.config.location:"
403403 + location );
404404 this .initializer .onApplicationEvent (this .event );
405- assertThat (this .environment , containsProperySource ("applicationConfig: ["
405+ assertThat (this .environment , containsPropertySource ("applicationConfig: ["
406406 + location + "]" ));
407407 }
408408
@@ -412,7 +412,7 @@ public void specificResourceDefaultsToFile() throws Exception {
412412 EnvironmentTestUtils .addEnvironment (this .environment , "spring.config.location:"
413413 + location );
414414 this .initializer .onApplicationEvent (this .event );
415- assertThat (this .environment , containsProperySource ("applicationConfig: [file:"
415+ assertThat (this .environment , containsPropertySource ("applicationConfig: [file:"
416416 + location + "]" ));
417417 }
418418
@@ -423,7 +423,7 @@ public void propertySourceAnnotation() throws Exception {
423423 ConfigurableApplicationContext context = application .run ();
424424 String property = context .getEnvironment ().getProperty ("my.property" );
425425 assertThat (property , equalTo ("fromspecificlocation" ));
426- assertThat (context .getEnvironment (), containsProperySource ("class path resource "
426+ assertThat (context .getEnvironment (), containsPropertySource ("class path resource "
427427 + "[specificlocation.properties]" ));
428428 context .close ();
429429 }
@@ -439,7 +439,7 @@ public void propertySourceAnnotationWithPlaceholder() throws Exception {
439439 ConfigurableApplicationContext context = application .run ();
440440 String property = context .getEnvironment ().getProperty ("my.property" );
441441 assertThat (property , equalTo ("fromspecificlocation" ));
442- assertThat (context .getEnvironment (), containsProperySource ("class path resource "
442+ assertThat (context .getEnvironment (), containsPropertySource ("class path resource "
443443 + "[specificlocation.properties]" ));
444444 context .close ();
445445 }
@@ -452,7 +452,7 @@ public void propertySourceAnnotationWithName() throws Exception {
452452 ConfigurableApplicationContext context = application .run ();
453453 String property = context .getEnvironment ().getProperty ("my.property" );
454454 assertThat (property , equalTo ("fromspecificlocation" ));
455- assertThat (context .getEnvironment (), containsProperySource ("foo" ));
455+ assertThat (context .getEnvironment (), containsPropertySource ("foo" ));
456456 context .close ();
457457 }
458458
@@ -465,9 +465,9 @@ public void propertySourceAnnotationInProfile() throws Exception {
465465 .run ("--spring.profiles.active=myprofile" );
466466 String property = context .getEnvironment ().getProperty ("my.property" );
467467 assertThat (property , equalTo ("frompropertiesfile" ));
468- assertThat (context .getEnvironment (), containsProperySource ("class path resource "
468+ assertThat (context .getEnvironment (), containsPropertySource ("class path resource "
469469 + "[enableprofile.properties]" ));
470- assertThat (context .getEnvironment (), not (containsProperySource ("classpath:/"
470+ assertThat (context .getEnvironment (), not (containsPropertySource ("classpath:/"
471471 + "enableprofile-myprofile.properties" )));
472472 context .close ();
473473 }
@@ -480,7 +480,7 @@ public void propertySourceAnnotationAndNonActiveProfile() throws Exception {
480480 ConfigurableApplicationContext context = application .run ();
481481 String property = context .getEnvironment ().getProperty ("my.property" );
482482 assertThat (property , equalTo ("fromapplicationproperties" ));
483- assertThat (context .getEnvironment (), not (containsProperySource ("classpath:"
483+ assertThat (context .getEnvironment (), not (containsPropertySource ("classpath:"
484484 + "/enableprofile-myprofile.properties" )));
485485 context .close ();
486486 }
@@ -493,7 +493,7 @@ public void propertySourceAnnotationMultipleLocations() throws Exception {
493493 ConfigurableApplicationContext context = application .run ();
494494 String property = context .getEnvironment ().getProperty ("my.property" );
495495 assertThat (property , equalTo ("frommorepropertiesfile" ));
496- assertThat (context .getEnvironment (), containsProperySource ("class path resource "
496+ assertThat (context .getEnvironment (), containsPropertySource ("class path resource "
497497 + "[specificlocation.properties]" ));
498498 context .close ();
499499 }
@@ -506,7 +506,7 @@ public void propertySourceAnnotationMultipleLocationsAndName() throws Exception
506506 ConfigurableApplicationContext context = application .run ();
507507 String property = context .getEnvironment ().getProperty ("my.property" );
508508 assertThat (property , equalTo ("frommorepropertiesfile" ));
509- assertThat (context .getEnvironment (), containsProperySource ("foo" ));
509+ assertThat (context .getEnvironment (), containsPropertySource ("foo" ));
510510 context .close ();
511511 }
512512
@@ -545,7 +545,7 @@ public void bindsToSpringApplication() throws Exception {
545545 assertThat ((Boolean ) field .get (application ), equalTo (false ));
546546 }
547547
548- private static Matcher <? super ConfigurableEnvironment > containsProperySource (
548+ private static Matcher <? super ConfigurableEnvironment > containsPropertySource (
549549 final String sourceName ) {
550550 return new TypeSafeDiagnosingMatcher <ConfigurableEnvironment >() {
551551 @ Override
0 commit comments