We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b26f5e commit 24037c2Copy full SHA for 24037c2
approvaltests-util-tests/src/test/java/org/lambda/query/QueryableTest.java
@@ -235,7 +235,7 @@ void testFirstOrThrow()
235
java.lang.RuntimeException: 4 not found
236
""";
237
Queryable<Integer> queryable = Queryable.as(1, 2, 3);
238
- assertEquals(3, queryable.first(i -> 2 < i));
+ assertEquals(3, queryable.firstOrThrow(i -> 2 < i, () -> new RuntimeException("Nothing bigger than 2")));
239
Approvals.verifyException(() -> queryable.firstOrThrow(i -> i == 4, () -> new RuntimeException("4 not found")),
240
new Options().inline(expected));
241
}
0 commit comments