From a7f155177de5e3fc9f59cfeba7b3aca7190963c8 Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Fri, 23 Aug 2024 21:54:40 +0200 Subject: [PATCH] Fixed Java streams usage in a test --- .../android/omninotes/async/upgrade/UpgradeProcessorTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omniNotes/src/androidTest/java/it/feio/android/omninotes/async/upgrade/UpgradeProcessorTest.kt b/omniNotes/src/androidTest/java/it/feio/android/omninotes/async/upgrade/UpgradeProcessorTest.kt index 01571324c..3f9c4054a 100644 --- a/omniNotes/src/androidTest/java/it/feio/android/omninotes/async/upgrade/UpgradeProcessorTest.kt +++ b/omniNotes/src/androidTest/java/it/feio/android/omninotes/async/upgrade/UpgradeProcessorTest.kt @@ -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" }); } }