Skip to content

Commit

Permalink
Fixed Java streams usage in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Aug 23, 2024
1 parent 1217aff commit a7f1551
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class UpgradeProcessorTest : BaseAndroidTestCase() {
note.attachmentsList[0] = attachment
dbHelper.updateNote(note, false)

assertFalse(Stream.of(dbHelper.allAttachments).allMatch { a -> a.single().uri.scheme != "content" });
assertFalse(dbHelper.allAttachments.stream().allMatch { a -> a.uri.scheme != "content" });

UpgradeProcessor.process(624, 625)

assertTrue(Stream.of(dbHelper.allAttachments).allMatch { a -> a.single().uri.scheme != "content" });
assertTrue(dbHelper.allAttachments.stream().allMatch { a -> a.uri.scheme != "content" });
}

}

0 comments on commit a7f1551

Please sign in to comment.