Use Supplier variants of Assert

See gh-19864
This commit is contained in:
dreis2211
2020-01-23 07:44:54 +01:00
committed by Stephane Nicoll
parent 9fbaf7611b
commit d8e2349e47
18 changed files with 28 additions and 27 deletions

View File

@@ -118,7 +118,7 @@ class ModifiedClassPathExtension implements InvocationInterceptor {
}
}
}
Assert.state(method != null, "Unable to find " + testClass + "." + testMethodName);
Assert.state(method != null, () -> "Unable to find " + testClass + "." + testMethodName);
return method;
}