diff --git a/dependencies.gradle b/dependencies.gradle index 14d832654..495a9daaf 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -37,7 +37,7 @@ ext { apiGuardianVersion = '1.1.2' opentest4jVersion = '1.3.0' archunitVersion = '1.2.1' - assertJVersion = '3.24.2' + assertJVersion = '3.25.0' mockitoVersion = '4.11.0' systemLambdaVersion = '1.2.1' kotlinVersion = '1.8.0' diff --git a/engine/src/test/java/net/jqwik/engine/statistics/StatisticsCollectionTests.java b/engine/src/test/java/net/jqwik/engine/statistics/StatisticsCollectionTests.java index 98412c4aa..6bb0ccdab 100644 --- a/engine/src/test/java/net/jqwik/engine/statistics/StatisticsCollectionTests.java +++ b/engine/src/test/java/net/jqwik/engine/statistics/StatisticsCollectionTests.java @@ -52,7 +52,7 @@ void countDoubleValues() { void callingCollectWithNoValueFails() { StatisticsCollectorImpl collector = new StatisticsCollectorImpl("a label"); - assertThatThrownBy(collector::collect).isInstanceOf(IllegalArgumentException.class); + assertThatThrownBy(() -> collector.collect()).isInstanceOf(IllegalArgumentException.class); } @Example