Replace this lambda with a method reference

See gh-15401
This commit is contained in:
igor-suhorukov
2018-12-07 00:52:04 +03:00
committed by Stephane Nicoll
parent 71173f2db5
commit 5c1813aef8
13 changed files with 21 additions and 19 deletions

View File

@@ -132,7 +132,7 @@ public class ApplicationContextAssertProviderTests {
ApplicationContextAssertProvider<ApplicationContext> context = get(
this.startupFailureSupplier);
assertThatIllegalStateException()
.isThrownBy(() -> context.getSourceApplicationContext())
.isThrownBy(context::getSourceApplicationContext)
.withCause(this.startupFailure).withMessageContaining("failed to start");
}