Replace this lambda with a method reference
See gh-15401
This commit is contained in:
committed by
Stephane Nicoll
parent
71173f2db5
commit
5c1813aef8
@@ -44,7 +44,7 @@ public class RemoteUrlPropertyExtractorTests {
|
||||
|
||||
@Test
|
||||
public void missingUrl() {
|
||||
assertThatIllegalStateException().isThrownBy(() -> doTest())
|
||||
assertThatIllegalStateException().isThrownBy(this::doTest)
|
||||
.withMessageContaining("No remote URL specified");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user