Skip to content

Commit 6746ecb

Browse files
committed
Simplify lambda
1 parent 5f7f4de commit 6746ecb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

fdb-record-layer-lucene/src/test/java/com/apple/foundationdb/record/lucene/LuceneScanAllEntriesTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private void assertIndexEntryPrimaryKeyTuples(Set<Tuple> primaryKeys, RecordCurs
235235

236236
@ParameterizedTest
237237
@BooleanSource
238-
public void indexScanWithEvenRecNoFilterTest(boolean isGrouped) throws Exception {
238+
public void indexScanWithEvenRecNoFilterTest(boolean isGrouped) {
239239
final long seed = 9876543L;
240240
final boolean isSynthetic = false;
241241

@@ -313,7 +313,7 @@ private FDBRecordStore.Builder getStoreBuilderFilterOddRecNo(@Nonnull FDBRecordC
313313

314314
@ParameterizedTest
315315
@BooleanSource
316-
public void indexScanWithRecNoIndexPredicateTest(boolean isGrouped) throws Exception {
316+
public void indexScanWithRecNoIndexPredicateTest(boolean isGrouped) {
317317
final long seed = 5432198L;
318318

319319
// Create an index predicate that only indexes records with even recNo
@@ -413,9 +413,7 @@ public void indexScanWithFailingFilterThrowsExceptionTest(boolean isGrouped) {
413413

414414
// Attempt to save records - should throw RecordCoreException from the filter for recNo 1002L
415415
try (FDBRecordContext context = openContext()) {
416-
RecordCoreException exception = Assertions.assertThrows(RecordCoreException.class, () -> {
417-
dataModel.saveRecords(1, context, 2);
418-
});
416+
RecordCoreException exception = Assertions.assertThrows(RecordCoreException.class, () -> dataModel.saveRecords(1, context, 2));
419417

420418
Assertions.assertTrue(exception.getMessage().startsWith("Filter failed for recNo:"),
421419
"Exception message should indicate filter failure");

0 commit comments

Comments
 (0)