From 24037c2fdb3f21e3cb4c1cc388a5a3957726b26f Mon Sep 17 00:00:00 2001 From: Llewellyn Falco Date: Thu, 21 Nov 2024 19:48:30 -0700 Subject: [PATCH] . t better tests --- .../src/test/java/org/lambda/query/QueryableTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }