Polish "Replace this lambda with a method reference"

Closes gh-15401
This commit is contained in:
Stephane Nicoll
2018-12-07 11:10:10 +01:00
parent 5c1813aef8
commit d5f90ffcfb
3 changed files with 4 additions and 6 deletions

View File

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