0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00

Use ResourceReader in test

This commit is contained in:
Alex Konradi 2024-07-18 14:48:18 -04:00 committed by GitHub
parent 671febbde8
commit 0b7d2856fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,9 +38,8 @@ public class ComparableBackupTest {
assertEquals(
backup.getComparableString(),
new String(
ComparableBackupTest.class
.getResourceAsStream(CANONICAL_BACKUP_STRING_NAME)
.readAllBytes(),
ResourceReader.readAll(
ComparableBackupTest.class.getResourceAsStream(CANONICAL_BACKUP_STRING_NAME)),
StandardCharsets.UTF_8));
}
}