diff --git a/approvaltests-util-tests/src/test/java/org/lambda/query/QueryableTest.java b/approvaltests-util-tests/src/test/java/org/lambda/query/QueryableTest.java index 93215d9a..29c4eece 100644 --- a/approvaltests-util-tests/src/test/java/org/lambda/query/QueryableTest.java +++ b/approvaltests-util-tests/src/test/java/org/lambda/query/QueryableTest.java @@ -235,7 +235,7 @@ void testFirstOrThrow() java.lang.RuntimeException: 4 not found """; Queryable queryable = Queryable.as(1, 2, 3); - assertEquals(3, queryable.first(i -> 2 < i)); + assertEquals(3, queryable.firstOrThrow(i -> 2 < i, () -> new RuntimeException("Nothing bigger than 2"))); Approvals.verifyException(() -> queryable.firstOrThrow(i -> i == 4, () -> new RuntimeException("4 not found")), new Options().inline(expected)); }