Skip to content

Commit

Permalink
Replaced commons usage
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
  • Loading branch information
ArnyminerZ committed Jul 5, 2024
1 parent b0526d5 commit 9c166b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/test/java/at/bitfire/vcard4android/ContactTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import ezvcard.parameter.RelatedType
import ezvcard.parameter.TelephoneType
import ezvcard.property.Birthday
import ezvcard.util.PartialDate
import org.apache.commons.io.IOUtils
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
Expand Down Expand Up @@ -202,7 +201,7 @@ class ContactTest {

// PHOTO
javaClass.classLoader!!.getResourceAsStream("lol.jpg").use { photo ->
assertArrayEquals(IOUtils.toByteArray(photo), c.photo)
assertArrayEquals(photo.readBytes(), c.photo)
}
}

Expand Down

0 comments on commit 9c166b1

Please sign in to comment.